agentleFS
fernandoxavier02fernandoxavier02/engineering-context/skills/setup/SKILL.md

setup

Skill0 starsChanged 7 months agoMITView on GitHub

This skill should be used when the user asks to 'set up engineering context', 'create engineering rules', 'configure engineering best practices', 'generate architecture contract', 'initialize context system', or 'set up engineering for this project'. Orchestrates the full 5-phase pipeline to create a mandatory engineering context system.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-discord, add-slack 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.
  • 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

  • +10 more from microsoft

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run phases sequentially. Each produces artifacts that feed into the next.

    line 43
  2. Distinctive:

    NEVER use generic examples — every example from the actual codebase

    line 93
  3. Distinctive:

    NEVER assume architecture — detect from directory structure, confirm with user

    line 94
  4. Distinctive:

    NEVER skip validation — always create and run the validation test

    line 95
  5. Distinctive:

    ALWAYS use AskUserQuestion for architecture confirmation

    line 96
  6. Distinctive:

    ALWAYS add vault triggers in each rule for deep consultation

    line 97

“Common” is measured: kept by at least 6 in 10 of the 168 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

Engineering Context Setup — Full Pipeline

Orchestrate the complete engineering context setup pipeline. This is the main entry point that coordinates all sub-skills to generate a mandatory engineering context system.

What It Produces

  1. 4 always-loaded rules (.claude/rules/50-53) — architecture contract, engineering principles, testing strategy, anti-patterns
  2. Vault engineering cards (vault/engineering/) — ADRs, examples, detailed patterns (pull on demand)
  3. Validation test — ensures the context system is correct

Pipeline

Phase 1: DETECT STACK
  → invoke `detect-stack` skill
  → output: PROJECT_PROFILE (language, framework, test framework, layers)

Phase 2: MAP ARCHITECTURE
  → invoke `map-architecture` skill
  → output: layer diagram, dependency rules, mandatory flows
  → confirm with user via AskUserQuestion

Phase 3: MINE ANTI-PATTERNS
  → invoke `mine-anti-patterns` skill
  → output: anti-pattern catalog (real issues from codebase)

Phase 4: GENERATE RULES
  → invoke `generate-rules` skill
  → output: 4 rules + vault cards

Phase 5: VALIDATE
  → invoke `validate-context` skill
  → output: validation test + results

Execution

Run phases sequentially. Each produces artifacts that feed into the next.

Phase 1: Detect Stack

Invoke detect-stack. Store the resulting PROJECT_PROFILE.

Phase 2: Map Architecture

Invoke map-architecture with the PROJECT_PROFILE. Present the detected architecture via AskUserQuestion for user confirmation before proceeding.

Phase 3: Mine Anti-Patterns

Invoke mine-anti-patterns. The anti-pattern catalog feeds into rule generation.

Phase 4: Generate Rules

Invoke generate-rules with PROJECT_PROFILE, architecture map, and anti-pattern catalog.

Generate these files:

  • .claude/rules/50-architecture-contract.md
  • .claude/rules/51-engineering-principles.md
  • .claude/rules/52-testing-strategy.md
  • .claude/rules/53-anti-patterns.md
  • Vault cards in vault/engineering/

Phase 5: Validate

Invoke validate-context. Generate and run the validation test.

Output

Present a summary:

╔════════════════════════════════════════════════════╗
║  ENGINEERING CONTEXT SETUP — COMPLETE              ║
╠════════════════════════════════════════════════════╣
║  Project: [name]                                   ║
║  Stack: [language] / [framework]                   ║
║  Architecture: [style]                             ║
║  Rules Created: 4                                  ║
║  Vault Cards: [N]                                  ║
║  Anti-Patterns Found: [N]                          ║
║  Validation: [N]/[N] PASSED                        ║
║  FINAL DECISION: GO / NO-GO                        ║
╚════════════════════════════════════════════════════╝

Critical Rules

  1. NEVER use generic examples — every example from the actual codebase
  2. NEVER assume architecture — detect from directory structure, confirm with user
  3. NEVER skip validation — always create and run the validation test
  4. ALWAYS use AskUserQuestion for architecture confirmation
  5. ALWAYS add vault triggers in each rule for deep consultation

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.