一键导入
git-workflow
GitHub workflow for AI-assisted advocacy development — issue-first, worktree-per-task, plan→review→implement loops, desloppify gate, post-PR monitoring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
GitHub workflow for AI-assisted advocacy development — issue-first, worktree-per-task, plan→review→implement loops, desloppify gate, post-PR monitoring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
General-purpose subagent delegated by /run. Runs pipeline orchestration algorithm: discover pipeline items, identify stage, dispatch per-stage subagents via Task, classify outcomes, write report.
Security audit workflow for advocacy projects — dependency verification, zero-retention compliance, slopsquatting defense, encrypted storage, instruction file integrity, device seizure readiness, ag-gag exposure assessment
Security audit workflow for advocacy projects — dependency verification, zero-retention compliance, slopsquatting defense, encrypted storage, instruction file integrity, device seizure readiness, ag-gag exposure assessment
SEO + GEO audit and implementation workflow — Core Web Vitals, HTML structure, semantic writing, E-E-A-T, content intent, Wikipedia/Wikidata, JSON-LD schema, meta tags, crawl budget, robots.txt, sitemap, IndexNow, topic cluster architecture, link building, brand signals, conversion optimization, analytics, internationalization, platform presence, defensive review
SEO + GEO audit and implementation workflow — Core Web Vitals, HTML structure, semantic writing, E-E-A-T, content intent, Wikipedia/Wikidata, JSON-LD schema, meta tags, crawl budget, robots.txt, sitemap, IndexNow, topic cluster architecture, link building, brand signals, conversion optimization, analytics, internationalization, platform presence, defensive review
Layered code review pipeline — automated checks first, then AI-assisted review, then human review focused on Ousterhout red flags, AI failure patterns, silent failures, and advocacy-specific concerns
| name | git-workflow |
| description | GitHub workflow for AI-assisted advocacy development — issue-first, worktree-per-task, plan→review→implement loops, desloppify gate, post-PR monitoring |
main — always work on a branchmain directly — always submit a pull requestBefore writing any code, verify there is a documented issue:
gh issue list --search "keywords describing the task"
gh pr list --state open --search "#<N> in:body,title" --json number,title,url
If one or more open PRs are returned:
gh issue create --title "Fix: short description" --body "..."
Do not begin implementation until the issue is documented.
Every task — especially in parallel agent swarms — gets its own git worktree. This isolates in-progress changes and prevents one agent's work from affecting another's.
git worktree add ../worktrees/<branch-name> -b <branch-name>
cd ../worktrees/<branch-name>
Branch naming: fix/<issue-number>-short-description or feat/<issue-number>-short-description. Under 50 characters. Reference the issue number. No advocacy language in external repos.
Critical for multi-agent work: When spawning parallel sub-agents, each agent MUST receive its own unique branch name and worktree path. Pass these explicitly — agents sharing a branch will produce conflicts and corrupted history.
Before planning, read the codebase. This is mandatory — AI agents violate DRY at 4x the normal rate because they skip this step.
Required reading:
git log --oneline -10 -- <file>Do not begin planning until you can describe the current behavior in your own words.
Write a detailed implementation plan before touching any code:
The plan is an artifact — write it out explicitly. Do not keep it in your head.
The plan must pass review before implementation begins. Review it yourself against the issue's acceptance criteria, or spawn a sub-agent to review it with full codebase context.
Review checks:
Loop: revise the plan → review again → until all concerns are resolved. Do not begin implementing on a plan with unresolved review concerns.
Work through subtasks in order. For each subtask:
git commit -m "fix(#<issue>): <imperative-mood description>"Every commit must leave the codebase passing. Never push broken commits.
After all subtasks are implemented, review the full diff against the plan:
Spawn a sub-agent to review if available. Loop: fix → review → until clean.
Before opening a PR, run desloppify on the repo:
desloppify scan --path .
desloppify next # loop: next → fix → resolve → next
Critical rule: The desloppify score after your changes must be equal to or higher than before. A score drop means the PR is not ready — fix the issues desloppify raises and rescan.
If the repo has no published desloppify score: Run a baseline scan first, record the score, then implement and rescan. The post-implementation score must be ≥ the baseline.
Minimum scores: Gary ≥80 · Platform repos ≥75 · All other repos ≥70
gh pr create \
--title "fix: <description> (closes #<issue>)" \
--body "$(cat <<'EOF'
## Summary
<1-3 bullet points describing what changed and why>
## Closes
#<issue-number>
## Test Plan
- [ ] <what was tested>
- [ ] <any new tests added>
## desloppify Score
Before: <score> After: <score>
## Notes
<security/privacy notes if applicable>
EOF
)"
After submitting, the task is not done. Periodically check the PR:
gh pr view <number> # overall status
gh pr checks <number> # CI/CD status
gh pr view <number> --comments # review comments
CI/CD failures: Investigate immediately. Identify the root cause, fix on the same branch, push, and verify checks go green. Do not leave a PR with failing checks unattended.
Review comments: Respond to every comment. For blocking issues, implement the fix on the same branch and push. For discussion comments, reply with your reasoning. Re-request review when fixes are pushed.
Loop: check → fix → push → check until the PR is merged, CI is green, and all review comments are resolved.
The task is not done until the PR is merged.
Squash-merge ephemeral branches. Delete branches immediately after merge. If a branch has lived longer than one working session, evaluate whether the approach needs to change.