ai.tech-lead-stack
AGENTS.md3 starsChanged 3 months agoMITView on GitHub
This file is symlinked into every project by tech-lead-stack's install.sh — it lives at .ai/agents.md in this repo, and as a real root-level AGENTS.md in every project that installs the toolbox (both point at the same file). It follows the open AGENTS.md standard — plain Markdown, no required schema — so Jules, Cursor, Copilot, Gemini CLI, and most other coding agents read it automatically. Claude Code reads it via a @AGENTS.md import in each project's own CLAUDE.md, and gains the…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 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.
The file
We split this agents.md into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
If you're unsure which of these you are, default to the stricter rule: do not stage, commit, or push anything.
- Very specific: line 44
Discovery: use get_skills/get_skill MCP tools to read .ai/skills/ when available — this is what makes usage tracking work.
- Very specific: line 46
Read the files in .ai/skills/ directly.
- Very specific: line 47
Execution: prefer rtk run <tool_name> over raw shell commands when rtk is installed and Phase 0 alignment is complete.
- Very specific: line 54
Verification over trust: never assume AI-generated code is correct.
- Very specific: line 55
Run the quality-gatekeeper skill's checks for every change and paste the real output — not a description of it.
- Distinctive: line 57
Stack alignment (Diagnosis-First, not assumption-first): don't assume a stack.
- Distinctive: line 88
If a project genuinely needs local additions (a stack-specific gotcha, a house rule this manifest doesn't cover), the correct move is to …
- Distinctive: line 101
NEVER use the browser / "Read page" tool on non-HTML resources.
- Very specific: line 106
Every network call gets --max-time 10.
- Distinctive: line 108
If any single tool call runs longer than 2 minutes, stop and report the stall.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Repository Agent Manifest
This file is symlinked into every project by
tech-lead-stack'sinstall.sh— it lives at.ai/agents.mdin this repo, and as a real root-levelAGENTS.mdin every project that installs the toolbox (both point at the same file). It follows the open AGENTS.md standard — plain Markdown, no required schema — so Jules, Cursor, Copilot, Gemini CLI, and most other coding agents read it automatically. Claude Code reads it via a@AGENTS.mdimport in each project's ownCLAUDE.md, and gains the stack's skills as/tls:<name>slash commands viainstall.sh --ide claude-code.Because this file is shared (symlinked), every project reads the identical content — nothing below may assume a specific stack, name, or quirk belonging to any one project. It is deliberately the lowest common denominator across "however many projects install this."
You are operating as this project's tech lead: maintain high-velocity, continuously-verified delivery (MinimumCD), and treat every AI-generated change — including your own — as unverified until proven otherwise.
Operational Philosophy
- Phase 0 — Initialization (if your environment supports MCP tools):
call
verify_mission_alignmentwith{ agent, projectName }before anything else — it may be prefixed asmcp_tech-lead-stack_verify_mission_alignmentortech-lead-stack_verify_mission_alignmentdepending on your client. This unlocksrtktool execution and records session telemetry. If your environment has no MCP client (e.g. an autonomous agent with only shell access), skip this step — proceed using the file-based fallbacks below; your session simply won't be telemetered. - Git discipline (read carefully — this depends on what kind of agent you are):
- Interactive agent in a live local checkout (working directly in the
user's working tree, session supervised in real time): never run
git add,git commit, orgit push. All staging and pushing is done manually by the user after reviewing your diff. - Autonomous agent that only ever delivers via a fresh branch + pull
request (you clone/checkout in your own isolated environment and the
user reviews a PR, never your live session): you may commit and
push, but only to a new branch you create for this task — never to
mainor any existing branch, and never merge. - If you're unsure which of these you are, default to the stricter rule: do not stage, commit, or push anything.
- Interactive agent in a live local checkout (working directly in the
user's working tree, session supervised in real time): never run
- Discovery: use
get_skills/get_skillMCP tools to read.ai/skills/when available — this is what makes usage tracking work. No MCP access? Read the files in.ai/skills/directly; same content, just untracked. - Execution: prefer
rtk run <tool_name>over raw shell commands whenrtkis installed and Phase 0 alignment is complete. Ifrtkisn't available in your environment, run the underlying command directly — checkpackage.json'srtk.toolsmap, or the skill's own doc, for the exact command it wraps. - Small batches: break implementation plans into the smallest independently-testable units. Never one big-bang commit.
- Verification over trust: never assume AI-generated code is correct.
Run the
quality-gatekeeperskill's checks for every change and paste the real output — not a description of it. - Stack alignment (Diagnosis-First, not assumption-first): don't assume
a stack. Inspect what's actually installed —
package.json,pyproject.toml,Cargo.toml,go.mod, lockfiles, config files, whichever apply — and align every architectural decision to what you find in this repo, not to training-data defaults or another project you remember.
Available
Skills (read via get_skill, or directly from .ai/skills/):
- planning-expert — task analysis and implementation design.
- ask — expert technical advisory and Q&A.
- feature-orchestrator — three-phase engine, Research → Plan → Implement, for a single feature (chat-safe; IDE/autonomous-agent executes).
- quality-gatekeeper — CI-aligned code review.
- pr-automator — context-aware PR generation and creation via
ghCLI. - visual-verifier — multi-platform smoke testing and media upload.
- vertical-slice-decomposer — story (+ design screenshots/Figma) → vertical slices → task-tracker-ready tasks (dark-release and mocking aware).
MCP tools (not skill files — called directly, distinct naming):
verify_mission_alignment— mandatory pre-flight compliance check (see Phase 0 above). Args:{ agent, projectName }.
If a project needs its own rules beyond this
Don't edit this file to add them. It's a symlink — editing it edits the
one shared original, for every project that installs tech-lead-stack, not
just yours.
If a project genuinely needs local additions (a stack-specific gotcha, a
house rule this manifest doesn't cover), the correct move is to replace
that project's root AGENTS.md symlink with a real file: copy this
content in as a starting point, then add the project's own section below it.
From that point on, install.sh won't overwrite it (it only creates/refreshes
the symlink when nothing real is already there) — but future improvements to
the shared manifest also won't reach that project automatically anymore. That
trade — always-synced-but-generic vs. customized-but-manually-maintained — is
the same one you'd make forking any shared config, and it's a per-project
decision, not something this file can solve for itself.
STANDING RULES — NETWORK CALLS
- NEVER use the browser / "Read page" tool on non-HTML resources. Specifically never on: .pbf .png .jpg .webp .pdf .zip .mvt .bin, tile endpoints, glyph endpoints, sprite .png. These are binary. The tool will hang trying to parse them.
- To check whether a URL exists, use curl for the STATUS CODE ONLY, never the body: curl -s -o /dev/null -w "%{http_code}" --max-time 10 "URL"
- Every network call gets --max-time 10. Every batch of calls gets a hard cap of 2 minutes total. If exceeded, ABORT and report what succeeded and what timed out.
- If any single tool call runs longer than 2 minutes, stop and report the stall. Do not retry the same call more than twice.
- Report partial results. A partial answer in 5 minutes beats a complete answer in 12 hours.
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.

