agentleFS
aegnticaegntic/compound-engineering/skills/setup/SKILL.md

setup

Skill1 starsChanged 5 months agoMITView on GitHub

Configure which review agents run for your project. Auto-detects stack and writes compound-engineering.local.md.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-voice-transcription, add-discord and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • juancruzmunozalbeloSkill

    add-voice-transcription

    Add voice message transcription to NanoClaw using OpenAI's Whisper API. Automatically transcribes WhatsApp voice notes so the agent can read and respond to them.

    Also in 5 projects that use this

  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • juancruzmunozalbeloSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 7 projects that use this

  • +8 more from microsoft

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 171 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read compound-engineering.local.md in the project root.

    line 22
  2. Distinctive:

    If "View current": read and display the file, then stop.

    line 36
  3. Distinctive:

    Only show options that differ from the detected type.

    line 133

“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “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
SKILL.md

Compound Engineering Setup

Interactive setup for compound-engineering.local.md -- configures which agents run during /workflows:review and /workflows:work, plus the visible Ralph/TDD defaults that planning and execution inherit.

Step 1: Check Existing Config

Read compound-engineering.local.md in the project root. If it exists, display current settings summary (including the TDD contract) and use AskUserQuestion:

question: "Settings file already exists. What would you like to do?"
header: "Config"
options:
  - label: "Reconfigure"
    description: "Run the interactive setup again from scratch"
  - label: "View current"
    description: "Show the file contents, then stop"
  - label: "Cancel"
    description: "Keep current settings"

If "View current": read and display the file, then stop. If "Cancel": stop.

Step 2: Detect and Ask

Auto-detect the project stack by checking for common project indicators:

# Detect project stack from root files
if [ -f "artisan" ] && [ -f "composer.json" ]; then
  echo "laravel"
elif [ -f "Cargo.toml" ]; then
  echo "rust"
elif [ -f "nest-cli.json" ] || grep -q '"@nestjs/core"' package.json 2>/dev/null; then
  echo "nestjs"
elif [ -f "nuxt.config.ts" ] || [ -f "nuxt.config.js" ]; then
  echo "nuxt"
elif [ -f "next.config.ts" ] || [ -f "next.config.js" ] || [ -f "next.config.mjs" ]; then
  echo "nextjs"
elif [ -f "angular.json" ]; then
  echo "angular"
elif [ -f "vite.config.ts" ] && grep -q '"vue"' package.json 2>/dev/null; then
  echo "vue"
elif [ -f "vite.config.ts" ] && grep -q '"react"' package.json 2>/dev/null; then
  echo "react"
elif [ -f "composer.json" ]; then
  echo "php"
elif [ -f "tsconfig.json" ]; then
  echo "typescript"
elif [ -f "package.json" ]; then
  echo "javascript"
elif [ -f "pyproject.toml" ] || [ -f "requirements.txt" ] || [ -f "setup.py" ]; then
  echo "python"
elif [ -f "go.mod" ]; then
  echo "go"
else
  echo "general"
fi

Use AskUserQuestion:

question: "Detected {type} project. How would you like to configure?"
header: "Setup"
options:
  - label: "Auto-configure (Recommended)"
    description: "Use smart defaults for {type}. Done in one click."
  - label: "Customize"
    description: "Choose stack, focus areas, and review depth."

If Auto-configure -> Skip stack/focus/depth and continue with Step 3d and Step 3e using these defaults:

  • Laravel: [laravel-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • PHP: [laravel-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • Vue/Nuxt: [vue-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • React/Next.js: [typescript-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • Angular: [typescript-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • NestJS: [nestjs-reviewer, typescript-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • TypeScript: [typescript-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • JavaScript: [typescript-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • Python: [python-reviewer, code-simplicity-reviewer, security-sentinel, performance-oracle]
  • Rust: [code-simplicity-reviewer, security-sentinel, performance-oracle, architecture-strategist]
  • Go: [code-simplicity-reviewer, security-sentinel, performance-oracle, architecture-strategist]
  • General: [code-simplicity-reviewer, security-sentinel, performance-oracle, architecture-strategist]

If Customize -> Step 3 (all questions)

Step 3: Configure Details

a. Stack -- confirm or override:

question: "Which stack should we optimize for?"
header: "Stack"
options:
  - label: "{detected_type} (Recommended)"
    description: "Auto-detected from project files"
  - label: "Laravel"
    description: "Laravel PHP -- adds Laravel convention reviewer"
  - label: "Vue/Nuxt"
    description: "Vue.js / Nuxt -- adds frontend reviewer"
  - label: "React/Next.js"
    description: "React / Next.js -- adds TypeScript reviewer"
  - label: "Angular"
    description: "Angular -- adds TypeScript reviewer"
  - label: "NestJS"
    description: "NestJS -- adds NestJS and TypeScript reviewers"
  - label: "Python"
    description: "Python -- adds Pythonic pattern reviewer"
  - label: "Rust"
    description: "Rust -- adds architecture reviewer"
  - label: "Go"
    description: "Go -- adds architecture reviewer"

Only show options that differ from the detected type.

b. Focus areas -- multiSelect:

question: "Which review areas matter most?"
header: "Focus"
multiSelect: true
options:
  - label: "Security"
    description: "Vulnerability scanning, auth, input validation (security-sentinel)"
  - label: "Performance"
    description: "N+1 queries, memory leaks, complexity (performance-oracle)"
  - label: "Architecture"
    description: "Design patterns, SOLID, separation of concerns (architecture-strategist)"
  - label: "Code simplicity"
    description: "Over-engineering, YAGNI violations (code-simplicity-reviewer)"

c. Depth:

question: "How thorough should reviews be?"
header: "Depth"
options:
  - label: "Thorough (Recommended)"
    description: "Stack reviewers + all selected focus agents."
  - label: "Fast"
    description: "Stack reviewers + code simplicity only. Less context, quicker."
  - label: "Comprehensive"
    description: "All above + git history, data integrity, agent-native checks."

d. Delivery loop:

question: "What should the default delivery loop be for this repo?"
header: "TDD"
options:
  - label: "Ralph-driven TDD (Recommended)"
    description: "Failing tests first, minimal implementation second, refactor third, rerun until green and clean. Plans default to unit + e2e evidence unless they record a justified exception."
  - label: "Standard implementation"
    description: "Implementation can lead. Plans may still opt into Ralph explicitly, but any weaker test evidence should be recorded in the plan."

e. Review mode:

question: "When should reviews run during /workflows:work?"
header: "Review mode"
options:
  - label: "Bulk (Default)"
    description: "Review runs once at the end of all tasks. Faster, less interruption."
  - label: "Inline"
    description: "Review runs after each task. Slower, but catches issues earlier."
  - label: "Both"
    description: "Inline review per task AND bulk review at the end."

Step 4: Build Agent List and Write File

Stack-specific agents:

  • Laravel/PHP -> laravel-reviewer
  • Vue/Nuxt -> vue-reviewer
  • React/Next.js/Angular/TypeScript/JavaScript -> typescript-reviewer
  • NestJS -> nestjs-reviewer, typescript-reviewer
  • Python -> python-reviewer
  • Rust/Go/General -> (none)

Focus area agents:

  • Security -> security-sentinel
  • Performance -> performance-oracle
  • Architecture -> architecture-strategist
  • Code simplicity -> code-simplicity-reviewer

Depth:

  • Thorough: stack + selected focus areas
  • Fast: stack + code-simplicity-reviewer only
  • Comprehensive: all above + git-history-analyzer, data-integrity-guardian, agent-native-reviewer

Plan review agents: stack-specific reviewer + code-simplicity-reviewer.

Execution settings:

  • tdd_enabled: compatibility mirror for current execution templates. true when tdd.mode is ralph, otherwise false.
  • tdd.precedence: plan_overrides_local (any concrete plan tdd value beats this file; inherit falls back here)
  • tdd.mode: ralph or standard
  • tdd.loop: red-green-refactor or implementation-first
  • tdd.evidence.unit: required or optional
  • tdd.evidence.e2e: required or optional
  • tdd.exceptions: [] by default. Plans must carry any justified exceptions.
  • review_mode: "bulk" (default), "inline", or "both" (controls per-task review in workflows:work)

Write compound-engineering.local.md:

---
review_agents: [{computed agent list}]
plan_review_agents: [{computed plan agent list}]
tdd_enabled: {true|false}
tdd:
  precedence: plan_overrides_local
  mode: {ralph|standard}
  loop: {red-green-refactor|implementation-first}
  evidence:
    unit: {required|optional}
    e2e: {required|optional}
  exceptions: []
review_mode: bulk
---

# Review Context

Add project-specific review instructions here.
These notes are passed to all review agents during /workflows:review and /workflows:work.

## TDD Defaults

- `tdd` is the visible repo-local default contract for planning and execution.
- Plan-level `tdd` values override this file for that plan; `inherit` falls back to these defaults.
- `tdd_enabled` mirrors whether `tdd.mode` is `ralph` until execution templates read the full `tdd` block directly.

Examples:
- "We use Turbo Frames heavily -- check for frame-busting issues"
- "Our API is public -- extra scrutiny on input validation"
- "Performance-critical: we serve 10k req/s on this endpoint"

Step 5: Confirm

Saved to compound-engineering.local.md

Stack:        {type}
Review depth: {depth}
Agents:       {count} configured
              {agent list, one per line}
TDD default:  {ralph|standard}
Loop:         {red-green-refactor|implementation-first}
Evidence:     unit={required|optional}, e2e={required|optional}
Precedence:   plan `tdd` values override local defaults when set

Tip: Edit the "Review Context" section to add project-specific instructions.
     Re-run this setup anytime to reconfigure review agents or TDD defaults.

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.