use-personal-access-token-for-pull-requests

use-personal-access-token-for-pull-requests is a cursor rule for Cursor from haasonsaas/rule-smith. It costs 0 tokens per session (99 once invoked), scanned A, original, MIT.

A repository rule requiring workflows that create pull requests to use personal access tokens. A pull request is a proposed code change submitted for review before it is merged.

In plain words
What is it for?
Use it to check GitHub workflow files and enforce personal access token use when those workflows create pull requests.
Why use it?
It makes the required authentication method explicit for automated pull-request workflows.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to check GitHub workflow files and enforce personal access token use when those workflows create pull requests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/haasonsaas/rule-smith/use-personal-access-token-for-pull-requests
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/haasonsaas/rule-smith

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for use-personal-access-token-for-pull-requests

README.md
[![agentmods](https://agentmods.dev/badge/rules/haasonsaas/rule-smith/use-personal-access-token-for-pull-requests.svg)](https://agentmods.dev/rules/haasonsaas/rule-smith/use-personal-access-token-for-pull-requests)
Your own site
<a href="https://agentmods.dev/rules/haasonsaas/rule-smith/use-personal-access-token-for-pull-requests"><img src="https://agentmods.dev/badge/rules/haasonsaas/rule-smith/use-personal-access-token-for-pull-requests.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 99 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00099
Opus 5 $0.00000 $0.00049
Sonnet 5 $0.00000 $0.00020
Haiku 4.5 $0.00000 $0.00010

Measured 7d ago against content hash 8a85ebc7b497, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

use-personal-access-token-for-pull-requests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/use-personal-access-token-for-pull-requests.mdc · 15 lines

What it actually says

Ensure that personal access tokens are used in workflows for creating pull requests

Files

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 15 lines · 0 tokens per session scan A 8a85ebc7b497

Subscribe to this mod's changes

use-personal-access-token-for-pull-requests is a cursor rule published in the GitHub repository haasonsaas/rule-smith (2 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 99 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other cursor rules, from other repositories

git-master

Git operations — clean commits, PR prep, conflict resolution, change summaries.

Jkudjo/oh-my-cursor · 14 tokens

release-commit-analysis-auto

This rule analyzes commits to determine if they should trigger a version bump. It categorizes conventional and non-conventional commits into Features, Bug Fixes, Breaking Changes, Documentation, and Other. It uses intelligent keyword matching for non-conventional commits and analyzes file changes to help categorize…

usrrname/cursorrules · 0 tokens

git-workflow

Git workflow: commits, branches, PRs, history management.

nedcodes-ok/cursorrules-collection · 891 tokens

commit-message

Reviews working-tree changes, then drafts a Conventional Commits title/body and states the semantic-release version bump a single such commit would imply. Also notes which defensive-code categories were touched. Use when the user wants to commit recent work, prepare a Conventional Commits message, or asks for…

danielvm-git/bigpowers · 68 tokens

hook-commits

Set up pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

danielvm-git/bigpowers · 55 tokens

guard-git

Block dangerous git commands (push, force push, reset --hard, clean, branch -D, checkout/restore .) and enforce Conventional Commits & Branch Protection before an AI agent runs them. Installs hook scripts for Claude Code, Cursor, Cursor CLI, and Gemini CLI; documents Google Antigravity Terminal deny lists. Use when…

danielvm-git/bigpowers · 96 tokens