brownfield-onboarding
Skill4 starsChanged 4 months agoMITView on GitHub
Use when pointing the team at an EXISTING, already-built app instead of a blank project — detects the stack, reverse-engineers the as-built architecture, and classifies remediation work as safe-to-auto-fix vs risky-needs-approval. Triggered by /app-onboard, /app-audit, and by /app-run when it detects a non-empty app directory.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- komazhao/vibe-coding-soptheir own version, first seen Apr 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- komazhao/vibe-coding-sop★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- accessibility-gateSkill
- agent-isolationSkill
- architecture-builderSkill
- board-doctorSkill
- business-modelSkill
- content-designSkill
- context-preflightSkill
- database-migrationSkill
- defect-huntingSkill
- dependency-policySkill
- design-systemSkill
- git-pr-strategySkill
- growth-analysisSkill
- house-conventionsSkill
- ic-workflowSkill
- intent-traceSkill
- interaction-motionSkill
- localisationSkill
- mutation-testingSkill
- parallel-orchestratorSkill
- performance-reviewSkill
- policy-checkerSkill
- prd-builderSkill
- process-tieringSkill
- requirements-intakeSkill
- role-activationSkill
- runtime-gateSkill
- spec-criticSkill
- sprint-plannerSkill
- support-miningSkill
- team-protocolSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Do not refactor anything in this step.
- Very specific: line 49
When /app-audit turns findings into work, tag each one so safe fixes can be automated and risky changes are gated behind a plan + human …
- Distinctive: line 68
Default posture: fix Safe automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Brownfield onboarding
Greenfield commands generate vision → PRD → architecture → code. For an app that already exists, you go the other way: read the code, snapshot what's there, grade it against the House KB, and plan the gap. This skill is the procedure for the "read and understand" half.
When to use
/app-onboard(adopt an existing codebase) and/app-audit(grade it) both start here./app-runinvokes this when the target directory already contains an app (see Detection).
Step 1 — Detect the app
Scan the target directory (not deeper than ~3 levels) to establish ground truth before any agent reasons about it:
- iOS:
*.xcodeproj/*.xcworkspace/Package.swift; readproject.yml(XcodeGen),*.xcconfig,Info.plist,Package.resolved. Note Swift version, min iOS target, SwiftUI vs UIKit. - Android:
settings.gradle*,app/build.gradle(.kts),gradle/libs.versions.toml. Note Kotlin/AGP,compileSdk/minSdk/targetSdk, Compose vs XML, the module list. - Both / signals: existing
CLAUDE.md,README,docs/, CI under.github/workflows,google-services.json/GoogleService-Info.plistpresence (Firebase), ads/billing SDKs in deps. - Neither iOS nor Android: that is a normal answer, not a dead end. Read the package manifests —
package.json,go.mod,Cargo.toml,pyproject.toml,pom.xml— plusDockerfile,Procfile, and whether there is a UI surface or a binary entry point.role-activation's detection table maps what you find to one of the seven product types. - Record the raw findings; do not guess where you can read. The product type you land on decides which specialists ever get spawned, so an ambiguous tree earns one question to the user.
Step 2 — Reverse-engineer the as-built baseline
Produce the docs the team normally writes, but describing what exists, not what's wished for:
docs/20-architecture.md— the actual stack, module/folder layout, state/persistence/DI/nav patterns in use, backend, CI, signing. Mark anything inferred as(inferred).- A feature inventory in
docs/10-prd.md— the screens/features that exist, derived from the code (navigation graph, view/screen files). Ask the user only for product intent you cannot read. CLAUDE.mdat the project root if missing — seeded from the as-built architecture + the House KB, pinning the real stack, build/run commands, and canonical type/property names found in the code.
Do not refactor anything in this step. You are taking a photograph, not renovating.
Step 3 — Classify every remediation as Safe or Risky
When /app-audit turns findings into work, tag each one so safe fixes can be automated and risky
changes are gated behind a plan + human approval:
Safe (auto-fix, normal code-review gate):
- Accessibility labels / Dynamic Type / touch-target fixes
- Hardcoded color/spacing/font → design-token swaps
- String localization (
String(localized:)/strings.xml) - Missing analytics events; wrapping calls in the existing consent gate
- Lint/detekt/ktlint/SwiftLint fixes, dead-code removal,
print/Log.d→ logger - Mechanical correctness: missing
transaction.finish(), missing@Index, missing@ForeignKeyindex
Risky (write a ticket + a short plan, require approval before touching code):
- Any database/schema migration or change to persisted user data
- Architecture refactors — layering, module boundaries, Display-DTO introduction
- Concurrency model changes — removing Combine/
@Published, actor isolation rewrites - Navigation restructure, DI overhaul
- Billing/entitlement logic changes, ad-gating/consent-flow rework
- Anything that changes app behavior a user would notice
Default posture: fix Safe automatically; for Risky, propose and wait. Never silently perform a risky change during an audit.
Step 4 — Hand off
Onboarding hands to /app-audit. Audit writes docs/80-audit.md and a remediation backlog of
AUDIT-NNN tickets (each carrying its severity, the violated House KB rule, and Safe/Risky tag),
then the normal build loop closes them.
Anti-patterns
- Reasoning about the app from its README alone — read the build files and code; READMEs drift.
- Rewriting code during onboarding/audit "while you're in there" — separate seeing from changing.
- Treating a risky refactor as safe because it's small — risk is about blast radius, not diff size.
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.

