agentleFS
cobusgreylingcobusgreyling/grok-build-arsenal/AGENTS.md

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.

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
  1. Distinctive:

    Plan Mode first for anything non-trivial: Never write code or make structural changes until a clear, approved plan exists.

    line 7
  2. Distinctive:

    Small, reviewable diffs: Prefer many small, intentional commits over large ones.

    line 8
  3. Distinctive:

    Security and safety by default: Treat hooks, MCP servers, and agent capabilities as high-risk.

    line 11
  4. Distinctive:

    Wait for explicit human approval before any write/edit.

    line 26
  5. Distinctive:

    Document subagent usage in commit messages or PR descriptions when relevant.

    line 31
  6. Very specific:

    Before writing custom instructions, check if an existing skill in .grok/skills/ or skills/ applies.

    line 34
  7. Very specific:

    When a new repeatable workflow emerges, capture it with /skillify (or equivalent) into a new narrowly-scoped skill.

    line 35
  8. Distinctive:

    Every MCP must have:

    line 40
  9. Very specific:

    Run grok inspect after any structural change to configuration.

    line 49
  10. Distinctive:

    Prefer composition over inheritance.

    line 57
  11. Common:

    No secrets in code or commits.

    line 59
  12. Distinctive:

    Commit messages follow Conventional Commits.

    line 61
  13. Distinctive:

    Never push directly to main.

    line 66
  14. Distinctive:

    Every PR must be small enough for a focused review.

    line 67
  15. Distinctive:

    Update relevant skills, AGENTS.md, or docs when patterns change.

    line 68
  16. Distinctive:

    When adding or updating a showcase:

    line 73
  17. Distinctive:

    All code must follow the standards above.

    line 75

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

  1. 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.
  2. 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.
  3. Skills are the primary mechanism for reusable workflows.
    • Before writing custom instructions, check if an existing skill in .grok/skills/ or skills/ 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).
  4. 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
  5. 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 inspect after 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 inspect output 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.