grok-build-arsenal
AGENTS.md6 starsChanged 5 months agoMITView on GitHub
This file defines the contract for all work in this repository. Grok Build (and any agent using grok-build-0.1) must follow these rules without exception. When adding or updating a showcase: - Include a clear "Build Story" (prompts used, Plan Mode usage, subagents, skills/MCPs, approximate effort). - All code must follow the standards above. - The showcase must itself be a g
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,542 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 repository7 other files it gives its agents.
- architecture-reviewerSkill
- git-disciplineSkill
- mcp-orchestratorSkill
- plan-mode-orchestratorSkill
- security-auditSkill
- subagent-arenaSkill
- tdd-intelligenceSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 1 is common, 13 are distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 7
Plan Mode first for anything non-trivial: Never write code or make structural changes until a clear, approved plan exists.
- Distinctive: line 8
Small, reviewable diffs: Prefer many small, intentional commits over large ones.
- Distinctive: line 11
Security and safety by default: Treat hooks, MCP servers, and agent capabilities as high-risk.
- Distinctive: line 26
Wait for explicit human approval before any write/edit.
- Distinctive: line 31
Document subagent usage in commit messages or PR descriptions when relevant.
- Very specific: line 34
Before writing custom instructions, check if an existing skill in .grok/skills/ or skills/ applies.
- Very specific: line 35
When a new repeatable workflow emerges, capture it with /skillify (or equivalent) into a new narrowly-scoped skill.
- Distinctive: line 40
Every MCP must have:
- Very specific: line 49
Run grok inspect after any structural change to configuration.
- Distinctive: line 57
Prefer composition over inheritance.
- Common: line 59
No secrets in code or commits.
- Distinctive: line 61
Commit messages follow Conventional Commits.
- Distinctive: line 66
Never push directly to main.
- Distinctive: line 67
Every PR must be small enough for a focused review.
- Distinctive: line 68
Update relevant skills, AGENTS.md, or docs when patterns change.
- Distinctive: line 73
When adding or updating a showcase:
- Distinctive: line 75
All code must follow the standards above.
≈ “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
AGENTS.md — Grok Build Arsenal
This file defines the contract for all work in this repository. Grok Build (and any agent using grok-build-0.1) must follow these rules without exception.
Core Principles
- Plan Mode first for anything non-trivial. Never write code or make structural changes until a clear, approved plan exists.
- Small, reviewable diffs. Prefer many small, intentional commits over large ones.
- Verification before declaration of done. Tests, lint, type checks, and manual review where appropriate must pass.
- Git discipline always. Conventional Commits. Clean history. Feature branches. No direct commits to main.
- Security and safety by default. Treat hooks, MCP servers, and agent capabilities as high-risk. Explicitly call out risks.
- Meta-awareness. This repo exists to showcase and improve agentic workflows. When building tools for agents, dogfood them here.
Project Identity
- Sole author: Cobus Greyling. All original creative and technical work is attributed to Cobus Greyling.
- Tone: Professional, precise, slightly irreverent where it serves clarity. No fluff.
- Quality bar: Production-grade or better. Every skill, MCP, and showcase must be something you would happily use in a real revenue-generating or high-visibility project.
Workflow Rules
- Always begin complex work in Plan Mode.
- State the goal.
- Decompose into the smallest safe steps.
- Identify risks, files touched, and verification method.
- Wait for explicit human approval before any write/edit.
- Use subagents deliberately.
- For investigation, research, or alternative approaches: spawn parallel subagents.
- Synthesize results. Never blindly trust a single subagent path.
- Document subagent usage in commit messages or PR descriptions when relevant.
- Skills are the primary mechanism for reusable workflows.
- Before writing custom instructions, check if an existing skill in
.grok/skills/orskills/applies. - When a new repeatable workflow emerges, capture it with
/skillify(or equivalent) into a new narrowly-scoped skill. - Skills must have excellent frontmatter (
name,description,when-to-use).
- Before writing custom instructions, check if an existing skill in
- MCP servers are first-class citizens.
- New capabilities should be implemented as clean, narrowly-scoped MCP servers when they involve external state or tools.
- Every MCP must have:
- Clear security model
- Manifest / tool list documented
- A driving skill that knows how to use it effectively
- Example usage in a showcase or prompt
- Testing and verification.
- For code changes: add or update tests that would have caught the change.
- For skills and MCPs: include validation steps (frontmatter checks, safety review, example runs).
- Run
grok inspectafter any structural change to configuration.
Coding Standards
- Python: Modern (3.11+), type hints everywhere, pytest, ruff or black + isort.
- TypeScript / JS (Next.js etc.): Strict, App Router where applicable, proper server/client boundaries.
- Rust (CLI/tools): Strong error handling with thiserror/anyhow, comprehensive tests, clippy clean.
- General:
- Prefer composition over inheritance.
- Explicit over implicit.
- No secrets in code or commits.
- Maximum line length ~100 for most languages (120 acceptable for tests/docs).
- Commit messages follow Conventional Commits.
Git & Collaboration
- Branch naming:
feature/,fix/,chore/,docs/ - Never push directly to main.
- Every PR must be small enough for a focused review.
- Update relevant skills, AGENTS.md, or docs when patterns change.
grok inspectoutput or key decisions should be referenced in significant PRs.
Showcase Rules
When adding or updating a showcase:
- Include a clear "Build Story" (prompts used, Plan Mode usage, subagents, skills/MCPs, approximate effort).
- All code must follow the standards above.
- The showcase must itself be a good citizen of this repo (uses skills from here where possible).
- Provide at least one "how to run / explore" command.
Forbidden Patterns
- Large un-reviewed refactors.
- Adding frameworks or heavy dependencies without a plan that justifies them.
- Writing skills or MCPs that hide dangerous behavior.
- Committing generated or lockfile noise.
- Claiming authorship for work that is not yours (Cobus Greyling is the sole author of original material here).
When in Doubt
Run grok inspect.
Then propose the smallest safe next step in Plan Mode.
This file is loaded automatically by Grok Build. It is the single source of truth for agent behavior in this repository.
Maintained by Cobus Greyling.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

