acf
AGENTS.md2 starsChanged 3 months agoMITView on GitHub
Canonical workflow for every agent using ACF to craft issues and PRs. Read this file top-to-bottom before using the skill.
- 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 repository10 other files it gives its agents.
- context-loadSkill
- stack-auditSkill
- issue-craftSkill
- pr-contextSkill
- frontend-previewSkill
- label-metadataSkill
- compactionSkill
- cavemanSkill
- graph-scopeSkill
- acfSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 106
Head+tail preservation: keep the original request (head, max 500 tokens) and the most recent phase output (tail, max 1000 tokens) verbatim.
- Very specific: line 143
Use install.sh to install ACF into any project.
- Distinctive: line 168
If you prefer to copy files manually:
- Very specific: line 185
Run the label creation commands from skills/06-label-metadata/SKILL.md in the target repo to create all canonical labels.
≈ “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
ACF — AI Agent Directives
Canonical workflow for every agent using ACF to craft issues and PRs. Read this file top-to-bottom before using the skill.
Reading Order
- AGENTS.md (this file) — Agent workflow and conventions
- docs/ARCHITECTURE.md — Skill architecture and data flow
- docs/FLOW.md — End-to-end pipeline diagram
- docs/IDEAS.md — Source conversation and idea mapping
- docs/PROCESS.md — Build process and decision log
- docs/COMPACTION.md — Context compaction research (Kimi CLI) and caveman mode
- docs/COMPATIBILITY.md — Multi-agent compatibility (agentskills.io spec)
- docs/ROADMAP.md — Product roadmap and maturity assessment
- skills/acf/SKILL.md — Orchestrator skill (source of truth, mirrored at
.devin/skills/acf/) - skills/01-context-load/SKILL.md — Phase 1: context loading (mirrored at
.devin/skills/01-context-load/) - skills/02-stack-audit/SKILL.md — Phase 2: stack auditing (mirrored at
.devin/skills/02-stack-audit/) - skills/03-issue-craft/SKILL.md — Phase 3: issue crafting (mirrored at
.devin/skills/03-issue-craft/) - skills/04-pr-context/SKILL.md — Phase 4: PR context building (mirrored at
.devin/skills/04-pr-context/) - skills/05-frontend-preview/SKILL.md — Phase 5: frontend preview (optional) (mirrored at
.devin/skills/05-frontend-preview/) - skills/06-label-metadata/SKILL.md — Label taxonomy (mirrored at
.devin/skills/06-label-metadata/) - skills/07-compaction/SKILL.md — Phase 7: context compaction (mirrored at
.devin/skills/07-compaction/) - skills/08-caveman/SKILL.md — Phase 8: extreme compression (mirrored at
.devin/skills/08-caveman/) - skills/09-graph-scope/SKILL.md — Phase 0: dependency graph + blast radius (mirrored at
.devin/skills/09-graph-scope/) - templates/issue-contextualized.md — Issue body template
- templates/pr-contextualized.md — PR body template
- SECURITY.md — Security policy
- CONTRIBUTING.md — Contributing guidelines
Project Snapshot
| Metric | Value |
| Orchestrator skill | 1 (acf) |
| Sub-skills | 9 (context-load, stack-audit, issue-craft, pr-context, frontend-preview, label-metadata, compaction, caveman, graph-scope) |
| Templates | 2 (issue, PR) |
| Docs | 7 (ARCHITECTURE, FLOW, IDEAS, PROCESS, COMPACTION, COMPATIBILITY, ROADMAP) |
| Skill format | Agent Skills spec (agentskills.io) — compatible with Claude Code, Cursor, Codex CLI, OpenCode, OpenClaw, Devin |
| Source of truth | skills/ (portable) + .devin/skills/ (Devin mirror) |
| Installer | install.sh — auto-detect, --all, --agent <name> |
| Dependencies | gh CLI, optional: Playwright (frontend-preview) |
| Compaction | Kimi CLI-inspired (phase 7) + caveman extreme mode (phase 8) |
| Security | SECURITY.md, CODEOWNERS, CI secret scan, skill validation CI |
| Tests | 7 suites (validate, install, integration, compatibility, benchmark, MCP, Playwright) — 69 script + 95 behavior + 36 MCP + 13 Playwright = 213 total, all passing |
Preferred Workflow
┌─────────────────────────────────────────────────────────────────┐
│ 0. GRAPH-SCOPE → Decompose project into dependency graph, │
│ compute affected subgraph (large projects) │
│ 1. CONTEXT-LOAD → Read project MDs + scoped files, build │
│ snapshot │
│ 2. STACK-AUDIT → Detect orphan PRs, stale issues, libs │
│ 3. ISSUE-CRAFT → Craft issue with AC, labels, metadata │
│ 4. PR-CONTEXT → Build PR body with issue context │
│ 5. FRONTEND-PREVIEW (optional) → Visual diff, screenshot │
│ 6. LAUNCH → gh issue create / gh pr create │
│ 7. COMPACTION (auto/optional) → Kimi-inspired context compaction│
│ 8. CAVEMAN (optional, extreme) → <500 tokens extreme compression│
└─────────────────────────────────────────────────────────────────┘Phases 7 and 8 can trigger at any point after context-load when the accumulated context exceeds the token budget.
Phase Rules
- Never skip context-load — every issue and PR must be built from a snapshot
- Never skip stack-audit — always check for orphan PRs and escaped issues
- Max 2 AC for autonomous issues — more than 2 = decompose or
batch-delivery - Library suggestions are separate issues — never bundle into the main issue
- Labels are mandatory — type + priority + area, minimum 3 labels per issue
- Context is compressed — reference paths, never inline file contents
- Compaction triggers at ~2000 tokens — auto-compact using Kimi techniques
- Caveman triggers when compaction is not enough — target <500 tokens
Context Compression Rules
ACF has three compression tiers:
| Tier | Phase | Target tokens | When to use |
| Full | 1-6 | ~2000 | Default, large context window |
| Compacted | 7 | ~800 | Standard compression (Kimi-inspired) |
| Caveman | 8 | <500 | Extreme, small context window or budget |
Compression principles (all tiers)
- Paths, not contents —
src/shared/Constants.luaunot the file's code - Commands, not configs —
lune run scripts/test_core.luaunot the test file - Check names, not YAML —
test (lune)not the full workflow - Counts, not lists — "26 services" not all 26 service names
- Labels, not body text —
priority:P1not "Priority: High" in body - Max 5 bullets per section in the snapshot
Compaction-specific (phase 7)
- Head+tail preservation: keep the original request (head, max 500 tokens) and the most recent phase output (tail, max 1000 tokens) verbatim; compact the middle
- Priority-based: preserve task state, errors, test commands, CI checks
- XML-tagged output:
<current_focus>,<stack>,<tests>,<ci> - First-person handoff: progress file reads as agent's own working notes
Caveman-specific (phase 8)
- No prose — only paths, commands, labels, numbers
- Symbols over words —
→,|,#N - Bare caveman last resort — only
NOW + NEXT + TESTS + CI(~100 tokens)
See docs/COMPACTION.md for the full research and design notes.
Label Taxonomy (summary)
See skills/06-label-metadata/SKILL.md for full taxonomy.
| Category | Labels |
| Type | bug, enhancement, documentation, refactor, chore, test, security |
| Priority | priority:P0, priority:P1, priority:P2, priority:P3 |
| Area | area:backend, area:frontend, area:ci, area:docs, area:security, area:devops |
| Status | ready-to-implement, needs-metadata, blocked, needs-human |
| Enhancement | library-review, batch-delivery |
Every issue MUST have: 1 type + 1 priority + 1 area label (minimum).
Installation
Universal installer (recommended)
Use install.sh to install ACF into any project. It auto-detects which agent
directories exist and installs to all of them:
./install.sh /target/projectInstall to ALL supported agents (creating directories as needed):
./install.sh /target/project --allInstall to a specific agent only:
./install.sh /target/project --agent claudeSupported agents: devin, claude, cursor, codex, agents, opencode
See docs/COMPATIBILITY.md for the full compatibility matrix.
Manual installation
If you prefer to copy files manually:
Devin:
cp -r .devin/skills/* /target/project/.devin/skills/Claude Code / Cursor / Codex / OpenCode / OpenClaw:
cp -r skills/* /target/project/.claude/skills/(Replace .claude/skills/ with the appropriate path for your agent — see
docs/COMPATIBILITY.md for the path table.)
Label setup
Run the label creation commands from skills/06-label-metadata/SKILL.md in the
target repo to create all canonical labels.
Git Commits
feat: New skill phase or feature
fix: Bug fix in a skill
docs: Documentation change
refactor: Skill reorganization
chore: Build, config, toolingKey File Reference
| Purpose | File (portable) | Devin mirror |
| Orchestrator skill | skills/acf/SKILL.md | .devin/skills/acf/SKILL.md |
| Phase 1: context-load | skills/01-context-load/SKILL.md | .devin/skills/01-context-load/SKILL.md |
| Phase 2: stack-audit | skills/02-stack-audit/SKILL.md | .devin/skills/02-stack-audit/SKILL.md |
| Phase 3: issue-craft | skills/03-issue-craft/SKILL.md | .devin/skills/03-issue-craft/SKILL.md |
| Phase 4: pr-context | skills/04-pr-context/SKILL.md | .devin/skills/04-pr-context/SKILL.md |
| Phase 5: frontend-preview | skills/05-frontend-preview/SKILL.md | .devin/skills/05-frontend-preview/SKILL.md |
| Phase 6: label-metadata | skills/06-label-metadata/SKILL.md | .devin/skills/06-label-metadata/SKILL.md |
| Phase 7: compaction | skills/07-compaction/SKILL.md | .devin/skills/07-compaction/SKILL.md |
| Phase 8: caveman | skills/08-caveman/SKILL.md | .devin/skills/08-caveman/SKILL.md |
| Phase 0: graph-scope | skills/09-graph-scope/SKILL.md | .devin/skills/09-graph-scope/SKILL.md |
| Issue template | templates/issue-contextualized.md | — |
| PR template | templates/pr-contextualized.md | — |
| Architecture | docs/ARCHITECTURE.md | — |
| Flow diagram | docs/FLOW.md | — |
| Ideas mapping | docs/IDEAS.md | — |
| Build process | docs/PROCESS.md | — |
| Compaction research | docs/COMPACTION.md | — |
| Multi-agent compatibility | docs/COMPATIBILITY.md | — |
| Roadmap | docs/ROADMAP.md | — |
| Installer | install.sh | — |
| Skill validator | scripts/validate-skills.sh | — |
| Validator tests | scripts/test-validate.sh | — |
| Installer tests | scripts/test-install.sh | — |
| Integration tests | scripts/test-integration.sh | — |
| Compaction benchmark | scripts/benchmark-compaction.sh | — |
| Full test runner | scripts/test-all.sh | — |
| Security policy | SECURITY.md | — |
| Contributing guide | CONTRIBUTING.md | — |
| Code of conduct | CODE_OF_CONDUCT.md | — |
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.

