agentleFS
aaddrickaaddrick/claude-pipeline/.claude/skills/adapting-claude-pipeline/SKILL.md

adapting-claude-pipeline

Skill129 starsChanged 9 months agoMITView on GitHub

Use when adapting the generic .claude pipeline folder to a specific codebase - adjusting skills, agents, hooks, scripts, prompts, and settings for the target project's tech stack and workflows

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Core principle: Every file in .claude/ must earn its place.

    line 12
  2. Very specific:

    REQUIRED: Use the brainstorming skill to explore the target project.

    line 45
  3. Very specific:

    REQUIRED: Use the writing-plans skill.

    line 168
  4. Very specific:

    REQUIRED: Use the subagent-driven-development skill to execute the plan.

    line 189
  5. Distinctive:

    Keep: All process skills, orchestration infrastructure

    line 243

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adapting Claude Pipeline to a Codebase

Overview

Adapt the generic .claude/ pipeline folder to a specific project's tech stack, domain, and workflows. This means modifying, replacing, or removing every skill, agent, hook, script, prompt, and setting so they serve the target codebase — not the original Laravel/web template.

Core principle: Every file in .claude/ must earn its place. If it doesn't serve the target project, delete it. If it needs modification, modify it. If new capabilities are needed, create them.

When to Use

  • Cloning the claude-pipeline repo into a new project
  • Onboarding an existing codebase with the generic .claude/ folder
  • Switching tech stacks (e.g., Laravel to Python, web to CLI, monolith to microservices)

The Process

digraph adaptation {
    rankdir=TB;

    "1. Brainstorm with user" [shape=box style=filled fillcolor=lightyellow];
    "2. Research domain patterns" [shape=box];
    "3. Audit existing .claude/ inventory" [shape=box];
    "4. Write adaptation plan" [shape=box];
    "5. Execute plan with subagents" [shape=box style=filled fillcolor=lightblue];
    "6. Verify adapted pipeline" [shape=box style=filled fillcolor=lightgreen];

    "1. Brainstorm with user" -> "2. Research domain patterns";
    "2. Research domain patterns" -> "3. Audit existing .claude/ inventory";
    "3. Audit existing .claude/ inventory" -> "4. Write adaptation plan";
    "4. Write adaptation plan" -> "5. Execute plan with subagents";
    "5. Execute plan with subagents" -> "6. Verify adapted pipeline";
}

Phase 1: Brainstorm

REQUIRED: Use the brainstorming skill to explore the target project.

Focus questions on:

  • Tech stack: Language, framework, database, infrastructure
  • Project type: Web app, CLI tool, library, API, microservice, data pipeline, etc.
  • Team workflows: CI/CD, code review, deployment, testing patterns
  • Pain points: What does the team struggle with that agents could help?
  • Existing tooling: Linters, formatters, test runners, build systems
  • Scope: Full adaptation or partial (e.g., keep orchestration, replace agents)?

Key decisions to reach:

  1. Which existing skills/agents/hooks are relevant (keep/modify)?
  2. Which are irrelevant (delete)?
  3. What new capabilities does the project need?
  4. What domain-specific best practices should agents follow?

Phase 2: Research Domain Patterns

Use WebSearch to investigate the target project's domain. This feeds directly into agent definitions and skill content.

Search for:

"[language/framework] best practices [current year]"
"[language/framework] anti-patterns"
"[language/framework] code review checklist"
"[language/framework] common mistakes"
"[language/framework] testing best practices"
"[language/framework] security considerations"
"[language/framework] project structure conventions"
"[tool/framework] CI/CD pipeline best practices"

Capture findings as notes — they will be incorporated into:

  • Agent anti-patterns sections
  • Skill content (technique skills)
  • Hook logic (formatting, linting)
  • Orchestration script stages

Phase 3: Audit Existing Inventory

Categorize every .claude/ file into one of four buckets:

BucketActionExample
Keep as-isUniversal process skillsbrainstorming, writing-plans, TDD, systematic-debugging
ModifyAdapt to new tech stackimplement-issue (change test commands), agents (change domain)
ReplaceSame purpose, different implementationlaravel-backend-developer → python-backend-developer
DeleteIrrelevant to target projectbulletproof-frontend (for a CLI tool), write-docblocks (non-PHP)

Inventory Checklist

Skills (19 in template):

SkillCategoryTypical Decision
brainstormingProcessKeep as-is
bulletproof-frontendDomain (web/CSS)Delete if not web
dispatching-parallel-agentsProcessKeep as-is
executing-plansProcessKeep as-is
handle-issuesWorkflow (GitHub)Keep if using GitHub Issues
implement-issueWorkflow (GitHub)Keep if using GitHub Issues
investigating-codebase-for-user-storiesProcessKeep as-is
process-prWorkflow (GitHub)Keep if using GitHub PRs
review-uiDomain (web/CSS)Delete if not web
subagent-driven-developmentProcessKeep as-is
systematic-debuggingProcessKeep as-is
test-driven-developmentProcessKeep as-is
ui-design-fundamentalsDomain (web/CSS)Delete if not web
using-git-worktreesProcessKeep as-is
using-skillsMetaKeep as-is
write-docblocksDomain (PHP)Replace with language-specific docblock skill
writing-agentsMetaKeep as-is
writing-plansProcessKeep as-is
writing-skillsMetaKeep as-is

Agents (10 in template):

AgentCategoryTypical Decision
bash-script-craftsmanDomain (bash)Keep if project uses bash
bats-test-validatorDomain (bash)Keep if project uses bash
bulletproof-frontend-developerDomain (web)Delete or replace
cc-orchestration-writerMetaKeep as-is
code-reviewerProcessModify (update tech stack refs)
code-simplifierDomain (PHP)Replace with language-specific
laravel-backend-developerDomain (Laravel)Replace with project-specific
phpdoc-writerDomain (PHP)Replace or delete
php-test-validatorDomain (PHP)Replace with language-specific
spec-reviewerProcessKeep as-is (tech-agnostic)

Hooks:

HookTypical Decision
session-start.shKeep as-is (loads using-skills)
post-pr-simplify.shModify (change PHP references) or delete

Settings (settings.json):

SettingTypical Decision
PHP formatter (Pint)Replace with project's formatter
Sensitive file protectionModify patterns for project
Production deploy protectionModify command for project
Desktop notificationsKeep as-is

Scripts:

ScriptTypical Decision
implement-issue-orchestrator.shModify (test commands, agents)
batch-orchestrator.shModify (agent references)
JSON schemasModify if stages change
BATS testsModify to match script changes

Prompts:

PromptTypical Decision
frontend audit/refactorDelete if not web, replace if different frontend

Phase 4: Write the Plan

REQUIRED: Use the writing-plans skill.

The plan should be organized into parallel workstreams where possible:

Workstream A: Delete irrelevant files (quick, no dependencies)
Workstream B: Modify existing files (parallel per file)
Workstream C: Create new skills (use writing-skills skill)
Workstream D: Create new agents (use writing-agents skill)
Workstream E: Modify orchestration scripts (use cc-orchestration-writer agent)
Workstream F: Update hooks and settings

Each task in the plan must specify:

  • File path to create/modify/delete
  • What changes and why
  • Which skill/agent to use for the task (writing-skills, writing-agents, cc-orchestration-writer, etc.)
  • Dependencies on other tasks (if any)

Phase 5: Execute with Subagents

REQUIRED: Use the subagent-driven-development skill to execute the plan.

Route tasks to the correct agent/skill:

Task TypeHow to Execute
Delete filesDirect (no subagent needed)
Modify existing skillsEdit directly, following writing-skills patterns
Create new skillsInvoke writing-skills skill
Modify existing agentsEdit directly, following writing-agents patterns
Create new agentsInvoke writing-agents skill
Modify orchestration scriptsDispatch cc-orchestration-writer agent via Task tool
Modify hooks/settingsDirect edit
Create new hooksbash-script-craftsman agent via Task tool

Parallel execution: Tasks in different workstreams with no shared files can run in parallel using dispatching-parallel-agents.

Phase 6: Verify

After all modifications:

  1. File inventory check — Glob .claude/ and verify no orphaned or irrelevant files remain
  2. Cross-reference check — Grep for references to deleted skills/agents/files and fix broken refs
  3. Settings validation — Ensure settings.json hooks reference existing files and commands
  4. Skill description audit — All skill descriptions match new project context
  5. Agent coordination audit — Deferral relationships between agents are consistent
  6. Dry run — Walk through a typical workflow (e.g., implement-issue) mentally to verify the pipeline makes sense

Common Adaptation Patterns

Web to CLI/Library

Delete: bulletproof-frontend, review-ui, ui-design-fundamentals, bulletproof-frontend-developer agent, all frontend prompts

Replace: laravel-backend-developer → language-specific developer agent

Modify: code-simplifier (change language), test validators (change framework)

Laravel to Python/Django

Replace: laravel-backend-developer → django-backend-developer, php-test-validator → pytest-validator, code-simplifier → python code simplifier, write-docblocks → python docstring writer

Modify: settings.json (Pint → Black/Ruff), post-pr-simplify.sh (PHP → Python)

Monolith to Microservices

Add: Service-specific agents, API contract validation skill, cross-service testing patterns

Modify: implement-issue workflow (multi-repo awareness), code-reviewer (service boundaries)

Adding New Domain

Add: Domain-specific agents (ML engineer, data pipeline developer, etc.), domain testing skills

Keep: All process skills, orchestration infrastructure

Red Flags

  • Keeping irrelevant skills "just in case" — delete them. They add noise and confuse skill discovery.
  • Generic agent personas — every agent should reference the actual project, its structure, and its conventions.
  • Orphaned references — grep for deleted skill/agent names in remaining files.
  • Skipping web research — domain patterns and anti-patterns are critical for agent quality.
  • Not updating settings.json — stale hooks that reference missing tools will cause errors.

Key Principles

  • Delete aggressively — fewer, focused files beat a bloated pipeline
  • Research before writing — WebSearch for domain patterns before creating agents/skills
  • Test the pipeline — walk through a real workflow after adaptation
  • Use the meta-skills — writing-skills and writing-agents exist to ensure quality; use them for new content
  • Preserve process skills — brainstorming, TDD, debugging, planning are universal; don't delete these

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.