skills/brownfield-onboarding/SKILL.md
This skill helps users get started with existing (brownfield) projects by scanning the codebase, documenting structure and purpose, analyzing architecture and technical stack, identifying design flaws, suggesting improvements for testing and CI/CD pipelines, and generating AI agent constitution files (AGENTS.md) with project-specific context, coding principles, and UI/UX guidelines.
npx skillsauth add cyberelf/agent_skills brownfield-onboardingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides a systematic approach to understand and document existing projects. It helps developers quickly get up to speed with unfamiliar codebases by generating comprehensive documentation about the project's structure, architecture, design decisions, identifying areas for improvement, and creating AI agent constitution files (AGENTS.md) that encode project-specific knowledge, coding principles, and UI/UX guidelines for effective AI-assisted development.
Invoke this skill when:
Upon invocation, this skill:
This skill uses different workflows based on the project's current state:
The AI agent automatically analyzes the project to determine its documentation maturity level.
Detection Process:
file_searchClassification States:
Detection Logic:
MATUREESTABLISHEDPARTIALVANILLA (default)The agent uses its intelligence to assess quality, not just quantity. A 60-line README with architecture details is better than a 150-line changelog.
Based on the agent's assessment, one of these workflows is executed:
| Project State | Workflow File | Time | Use When | |--------------|---------------|------|----------| | Vanilla | vanilla-project.md | 15-25 min | No/minimal docs, no constitutions | | Partial Docs | partial-documentation.md | 10-20 min | Has README, no constitutions | | Established | established-project.md | 10-15 min | Good docs, has constitutions, no AGENTS.md | | Mature | mature-project.md | 5-10 min | Already has AGENTS.md files |
📖 For detailed workflow selection logic, see decision-guide.md
All workflows execute these five phases (adapted to project state):
.onboard/overview.md.onboard/architecture.md.onboard/design_suggestions.md.onboard/guardrail_suggestions.mdAGENTS.md files + .onboard/agent_constitution.mdAnalyze the project to determine its documentation maturity:
Search for AGENTS.md: Use file_search with pattern **/AGENTS.md
Search for constitution files: Use file_search to look for:
.cursorrulesCONTRIBUTING.md.github/CONSTITUTION.md.eslintrc, .prettierrc, etc.)Analyze README: Use read_file to check README.md
Classify based on findings:
Based on your assessment, read and execute the corresponding workflow:
Follow the instructions in the selected workflow file:
Ensure all expected files are generated:
.onboard/overview.md.onboard/architecture.md.onboard/design_suggestions.md.onboard/guardrail_suggestions.md.onboard/agent_constitution.md./AGENTS.md (created or enhanced)Give user a comprehensive completion summary based on workflow type.
This skill includes template files for generating AGENTS.md:
root-agents-template.md
frontend-agents-template.md
backend-agents-template.md
Templates are adapted based on:
Across all workflows, these tools are commonly used:
list_dir - Explore directory structurefile_search - Find specific files by pattern (e.g., **/AGENTS.md, **/.cursorrules)read_file - Read documentation and config files (README, CONTRIBUTING, etc.)semantic_search - Find features and conceptsgrep_search - Pattern-based code searchlist_code_usages - Understand code relationshipsget_errors - Identify existing issuesAfter execution, the workspace contains:
.onboard/
├── overview.md # Project structure and features
├── architecture.md # Technical stack and architecture
├── design_suggestions.md # Improvement recommendations
├── guardrail_suggestions.md # Testing and CI/CD recommendations
└── agent_constitution.md # Constitution generation summary
AGENTS.md # Root project constitution
[frontend]/AGENTS.md # Frontend guidelines (if applicable)
[backend]/AGENTS.md # Backend guidelines (if applicable)
This skill can be extended to include:
To use this skill:
references/The workflow files contain all detailed instructions - this main SKILL.md serves as the orchestration guide.
tools
Agent-first graph-backed knowledge wiki builder with a self-contained CLI. Use for Graphwiki init/build/ingest/update, source indexing, semantic entity and relationship extraction, generated wiki pages, graph JSON/HTML explorer, evidence line ranges, query/explain question answering, synthesis pages, HTML reports, adding confirmed entity types, applying patches, cleanup, validation, tasks, and SQLite cache generation.
development
Use when the user asks to export a local HTML file, web page, or invitation page to a single-page PDF, a no-pagination PDF, a long PDF with auto-calculated height, or a PDF without headers and footers. Trigger on phrases like 单页 PDF, 不分页, 自动计算长度, 长图 PDF, 去掉页眉页脚, export HTML to single-page PDF, or print page to one PDF page.
development
Build and expand an insight-ready raw-material layer by discovering page-level sources, deduplicating them with an internal pre-crawl link index, capturing raw Markdown, verifying metadata in place, and keeping ingest/register state aligned. Use for additive source harvesting, raw webpage capture, source registry maintenance, source/ingest tracking, source/raw downloads, and in-place verification rather than final synthesis.
development
Generate a structured, illustrated Q&A HTML document from the current conversation. Scans the conversation for conceptual questions the user asked and Claude's answers, then produces a self-contained HTML file with styled cards and SVG diagrams for technical/architectural topics. If a Q&A HTML file already exists in the current project directory, appends the new Q&As to it instead of creating a new file. Trigger this skill whenever the user asks to "generate Q&A", "create Q&A from conversation", "save Q&A", "document our Q&A", "turn this chat into Q&A", or anything suggesting they want the conversation's questions and answers captured as a document — even if they don't use the exact phrase "Q&A skill".