Individual skill
agentsop-repo-state-gating
A 5-minute gate the coder runs at project kickoff (and again whenever the repo shape changes). Classifies the workspace into Greenfield / Brownfield-large / Mid-size-familiar / Library-SDK, then maps the state to an agent strategy (autonomy, context primitive, tool choice). Use BEFORE picking Cursor vs Claude Code vs Aider, BEFORE turning on repo-map, BEFORE writing the first prompt. Skip only if the same repo was gated within the last day and nothing changed. Search keywords: greenfield vs brownfield, new project vs existing codebase, project setup strategy, legacy codebase agent, where to start a coding agent.
skills/agentsop-repo-state-gating/SKILL.md
Source commit cf4376869e5f23f82404c3021a2a1315dfca318d
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 465
- Repository last updated
- Oct 24, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skill Repository topic
- skill-creation Repository topic
- ai-agent Repository topic
- llm-agent Repository topic
- skill-engineering Repository topic
- skill-generation Repository topic
- skill-pipeline Repository topic
- skill-construction Repository topic
- agent-skills Repository topic
- skill-acquisition Repository topic
- engineering Derived category
- writing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
README.mddoc · 2,347 bytesSKILL.mdcore · 15,618 bytesSKILL.mdcore · 15,618 bytesintermediate/operation_candidates.jsonasset · 6,423 bytesreferences/R1-state-taxonomy.mddoc · 6,782 bytesreferences/R2-gate-questions.mddoc · 7,767 bytes
Read excerpt
# Repo-State Gating — 5-Line Decision at Project Kickoff
> 一句话:**agent strategy = f(repo-state)**。先判定 repo 状态,再选工具/上下文原语/自治程度。
> 跳过这一步 = 用错工具,浪费一个小时的上下文。
---
## 1. 何时激活
只在以下时刻跑一次(≤5 分钟):
- **新会话第一次进入某仓库**(含 `cd` 切到新目录、`git clone` 后第一次启动 agent)
- **仓库形态显著变化**:从空目录跑到 100+ 文件、引入新子系统、merge 一个大 PR
- **agent 选错过工具**之后的复盘("我为什么开了 Cursor 写 SDK / 用 Aider 起新项目")