nagacodex-factory-skill
AGENTS.md1 starsChanged 58 days agoMITView on GitHub
Every task moves through the same four beats, each backed by a skill from this collection (or installed alongside it — see Skill sources). Drop this file into a repo as AGENTS.md and fill in the repo-specific callouts; it also governs work in this repo itself. 1. Isolate — /new-feature. Every new feature starts in a fresh Git worktree branched from origin/main so agents can work in parallel without conflicts. Never build on main. 2. Build — /code-structure. Write code…
- Commits and pushes
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 repository9 other files it gives its agents.
- naga-factory/AGENTS.mdAGENTS.md
- before-and-afterSkill
- code-structureSkill
- evidence-driven-testingSkill
- greploop-appsSkill
- greploopSkill
- naga-factorySkill
- new-featureSkill
- unslopSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
8
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 3
Every task moves through the same four beats, each backed by a skill from this collection (or installed alongside it — see Skill sources).
- Very specific: line 10
Isolate —
/new-feature: Every new feature starts in a fresh Git worktree branched from origin/main so agents can work in parallel without … - Very specific: line 13
Build —
/code-structure: Write code to the service-layer architecture: actions/boundaries orchestrate the "why/when", a service layer … - Very specific: line 17
Prove —
/evidence-driven-testing: Verify with the repo's checks plus runtime evidence. - Very specific: line 40
Run /unslop over anything a person will read, before you commit, post, or send it: commit messages, the PR title and body, README and doc …
- Distinctive: line 49
Never commit directly to main.
- Very specific: line 52
Scope check: before starting: skim open PRs' changed files (gh pr list, gh pr diff <n> --name-only) and look for uncommitted work in shared …
- Very specific: line 55
Never force-push to main — and never plain --force anywhere.
- Distinctive: line 61
If a conflict can't be resolved confidently, stop and report instead of guessing.
- Distinctive: line 66
Keep changes limited to the assigned task.
- Distinctive: line 67
Run the repo's checks *(repo-specific: list the exact commands here)*.
- Very specific: line 69
Commit with a clear message, rebase onto the latest origin/main, and rerun the checks.
- Very specific: line 76
Run /greploop (or /greploop-apps) until 5/5 with zero unresolved comments.
- Distinctive: line 80
Do not merge the PR unless explicitly instructed.
- Distinctive: line 85
When dropping this file into a project, append what agents need to execute the beats there: commands & checks, hard invariants (security …
≈ “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 workflow
Every task moves through the same four beats, each backed by a skill from
this collection (or installed alongside it — see Skill sources).
Drop this file into a repo as AGENTS.md and fill in the repo-specific
callouts; it also governs work in this repo itself.
Workflow
- Isolate —
/new-feature. Every new feature starts in a fresh Git worktree branched fromorigin/mainso agents can work in parallel without conflicts. Never build onmain. - Build —
/code-structure. Write code to the service-layer architecture: actions/boundaries orchestrate the "why/when", a service layer owns the reusable "how", with explicit inputs and structured returns. - Prove —
/evidence-driven-testing. Verify with the repo's checks plus runtime evidence. Capture the before state while reproducing the issue — prior to fixing it, when it is cheapest — and the after once the change works. - Ship —
/before-and-after, then/greploop. Open the PR with before/after proof embedded in the description (screenshot or video whenever the change has a visible surface; measured numbers or output pairs when it doesn't). Run/greploop— or/greploop-appswhen the PR exceeds Greptile's file-count limit — until Greptile reports 5/5 with zero unresolved comments. Finish by presenting the PR URL.
Ship-beat notes:
/before-and-afterdrives the@vercel/before-and-afterCLI.--markdownuploads the pair and prints a PR-ready table; it also accepts existing PNGs, so evidence gathered while developing can be reused as-is.- In containers/VMs where Chrome fails with "No usable sandbox", set
AGENT_BROWSER_ARGS="--no-sandbox"for the capture command. - The default upload host (0x0.st) is public — fine for ordinary UI shots;
pass
--upload-urlfor anything sensitive.
Writing for humans
Run /unslop over anything a person will read, before you commit, post, or
send it: commit messages, the PR title and body, README and doc edits, code
comments, and the closing reply. It strips AI tells (em dashes, filler,
hedging, chatbot phrases, puffery, bold-label lists) and replaces fancy
words with plain ones and passive voice with active. Apply it to text you
wrote or changed, not to prose you didn't touch.
Multi-agent rules
- Never commit directly to
main. - One worktree and one branch per task and per agent — never reuse or modify another agent's worktree, branch, or uncommitted work.
- Scope check before starting: skim open PRs' changed files
(
gh pr list,gh pr diff <n> --name-only) and look for uncommitted work in shared checkouts. On overlap, stop and ask for direction. - Never force-push to
main— and never plain--forceanywhere; only--force-with-lease, only on your own task branch. - Resolve lockfile conflicts by regenerating, never by hand-merging.
- Worktrees don't isolate shared resources: confirm a dev-server port answers your process before trusting it, and don't run schema experiments against a shared database.
- If a conflict can't be resolved confidently, stop and report instead of guessing.
Completing a task
- Keep changes limited to the assigned task.
- Run the repo's checks (repo-specific: list the exact commands here).
- Assemble the evidence captured along the way into before/after pairs.
- Commit with a clear message, rebase onto the latest
origin/main, and rerun the checks. - Push (
git push -u origin <branch>; after rebasing an already-pushed branch,--force-with-lease). - Open the PR. The body must explain what changed, how it was tested (every
claim backed by evidence), before/after proof, and any risks or follow-up
work. Run the title and body through
/unslopbefore posting. - Run
/greploop(or/greploop-apps) until 5/5 with zero unresolved comments. - End by presenting the PR URL.
Do not merge the PR unless explicitly instructed. Keep the worktree until the PR is merged or closed.
Repo-specific sections to add
When dropping this file into a project, append what agents need to execute the beats there: commands & checks, hard invariants (security and architecture rules), an environment quick reference, local test infrastructure (stubs, fixtures), and anything that can't be tested locally.
Skill sources
| Skill | Source |
new-feature, code-structure, evidence-driven-testing | this repo |
before-and-after | this repo, vendored from vercel-labs/before-and-after (or npx skills add vercel-labs/before-and-after) |
greploop | this repo, vendored from greptileai/skills |
greploop-apps | this repo (local variant of greploop for huge PRs; no separate upstream) |
unslop | this repo, vendored from cursor/plugins (pstack); frontmatter edited so agents apply it unprompted (disable-model-invocation dropped, description scoped to text the agent writes or edits for people), body untouched |
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.

