grok-brownfield
AGENTS.md2 starsChanged 5 months agoMITView on GitHub
Brief guidance for AI agents editing grok-brownfield. When changing normative transport or phase behavior in SKILL.md, apply all four steps in order: Skip step 4 only for purely internal wiring with no contributor or end-user visibility. Always run from repo root: Fix failures before committing. Negative tests intentionally mutate copies under mktemp — do not skip them. Do not duplicate the entire skill in README; link to SKILL.md for internals.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- brownfieldSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 1 is common, 2 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Keep phase numbering consistent (0 → 6, plus 2a, 4b)
- Very specific: line 16
When adding normative behavior, add a matching pattern to scripts/verify_skill.sh
- Very specific: line 20
When changing normative transport or phase behavior in SKILL.md, apply all four steps in order:
- Distinctive: line 31
Always run from repo root:
- Very specific: line 45
Do not duplicate the entire skill in README.
- Common: line 50
No tokens or credentials in messages or files
- Very specific: line 56
Commit /tmp/grok-* state or design drafts
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent instructions (contributors)
Brief guidance for AI agents editing grok-brownfield.
Scope
- In scope:
SKILL.md,scripts/verify_skill.sh,tests/test_verify_skill.sh,README.md,CONTRIBUTING.md - Out of scope:
~/.grok/bundled/skills/(separate bundle), user/tmpartifacts, secrets
Editing SKILL.md
- Preserve frontmatter keys:
name,description,when-to-use,argument-hint,compatibility - Keep phase numbering consistent (0 → 6, plus 2a, 4b)
- Tool-call discipline section is normative — do not weaken anti-hallucination rules
- Resume path validation (
brownfield_id, workspace_root, artifact allowlist) must stay strict - When adding normative behavior, add a matching pattern to
scripts/verify_skill.sh
Protocol-update checklist
When changing normative transport or phase behavior in SKILL.md, apply all four steps in order:
- SKILL.md — encode the normative section (e.g. Context Budget Protocol, Phase 1b columns, Delegation prompt rule). Cite line ranges; do not inline the full skill in prompts.
scripts/verify_skill.sh— add or update anchored grep patterns that fail if the section is removed or hollowed out.tests/test_verify_skill.sh— add a negative test that strips the section and expects verify failure (pattern:NO_CONTEXT_BUDGET).README.md— update mermaid, deliverables, or workflow description if the change is user-facing (phases, flags, context budget, artifacts).
Skip step 4 only for purely internal wiring with no contributor or end-user visibility.
Verification workflow
Always run from repo root:
bash scripts/verify_skill.sh
bash tests/test_verify_skill.shFix failures before committing. Negative tests intentionally mutate copies under mktemp — do not skip them.
README vs SKILL.md
- README.md — human-facing GitHub landing (install, examples, tables, mermaid)
- SKILL.md — full orchestrator spec for Grok at runtime
Do not duplicate the entire skill in README; link to SKILL.md for internals.
Git
- One logical change per commit when possible
- No tokens or credentials in messages or files
- Public repo:
kartikkabadi/grok-brownfield
Do not
- Reference internal hostnames (e.g.
internal.example.com,<org>-internal) in examples - Commit
/tmp/grok-*state or design drafts - Change verify scripts to pass on a weakened skill without updating tests intentionally
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

