Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# VGV Wingspan

Wingspan is a collection of AI-assisted engineering tools — skills, agents, and hooks — for the software development lifecycle.

## Repository Structure

```text
.claude-plugin/
plugin.json # Plugin manifest (name, version, keywords)
.mcp.json # MCP server configuration (context7)
AGENTS.md # This file — portable, tech-agnostic conventions
CLAUDE.md # Claude Code entry point: imports AGENTS.md, adds Claude-specific Hooks
README.md # Human-facing overview and install instructions
CONTRIBUTING.md # Contributor guide (adding skills, hooks, commit format)
config/
cspell.json # Spell-check dictionary and settings
custom.markdownlint.jsonc # Markdown lint rule overrides
agents/ # Subagent definitions, grouped by role
analysis/
plan-splitting-agent.md # Flags oversized plans to split across PRs
user-flow-analysis-agent.md # Analyzes specs for flow gaps and edge cases
codebase-review/
codebase-review-agent.md # Reviews structure, conventions, pattern consistency
code-simplicity-review-agent.md # Flags YAGNI violations and over-engineering
vgv-review-agent.md # Reviews against VGV engineering standards
quality-review/
architecture-review-agent.md # Validates layer separation and dependency direction
pr-readiness-review-agent.md # Checks formatting, static analysis, commit hygiene
test-quality-review-agent.md # Verifies test coverage and quality
research/
best-practices-research-agent.md # Synthesizes best practices for the stack
official-docs-research-agent.md # Gathers official framework/library docs
hooks/
hooks.json # Hook definitions (PreToolUse)
recommend-plugins.sh # Detects project type, recommends companion plugins
test_recommend_plugins.sh # Tests for the recommendation hook
recommendations/
vgv-ai-flutter-plugin.json # Detection rule + recommendation for the Flutter plugin
skills/ # User-invocable and supporting skills (one dir per skill)
brainstorm/SKILL.md # Explore requirements and approaches
plan/SKILL.md # Turn a brainstorm into an implementation plan
build/SKILL.md # Execute a plan: implement, review, ship
review/SKILL.md # Run quality-review agents on demand
hotfix/SKILL.md # Fast path for emergency fixes
debrief/SKILL.md # Post-incident analysis document
create/SKILL.md # Scaffold a new project via companion plugins
create-pr/SKILL.md # Generate a PR title and description
plan-technical-review/SKILL.md # Review externally-authored plans
refine-approach/SKILL.md # Iteratively improve a document
rebase/SKILL.md # Sync a feature branch with its base
elements-of-style/SKILL.md # Apply Strunk's Elements of Style to prose
shared/ # Shared references and scripts used across skills
references/ # Plan templates, review procedures, handoff steps
scripts/ # detect-base-branch.sh, detect-review-scope.sh
```

Each skill directory may also carry a `references/` folder (deeper procedure docs) and a `scripts/` folder (helper shell scripts).

## Philosophy

Apply VGV's best practices and standards for scalable software to AI-assisted workflows. Each step of the development cycle should make subsequent steps clearer and closer to the user's intent. Build the right thing, build the thing right.

## Tech-Agnostic by Design

Wingspan handles the software development lifecycle — brainstorming, planning, building, and quality review. It does not enforce or assume any specific programming language, framework, or toolchain.

Technology-specific concerns (linting, formatting, scaffolding, framework conventions) belong in companion plugins. In Claude Code, Wingspan's recommendation hook detects project types and suggests the appropriate companion plugin automatically.

## Workflow

> The `/name` forms below are the canonical skill names. Invocation syntax varies by harness — Claude Code uses `/name`; other harnesses may differ.

The plugin supports three sequential phases:

1. **`/brainstorm`** — Explore requirements and approaches through collaborative dialogue. Produces a brainstorm document.
2. **`/plan`** — Transform brainstorm output into an actionable implementation plan. Includes codebase review, optional external research, flow analysis, and a mandatory quality review of the draft. Splits large plans into phases so `/build` executes one phase per context window.
3. **`/build`** — Execute implementation plans: implement one phase per context window (implement → validate → commit → checkpoint → clear), run quality review, and ship a pull request. Committing and pushing follow the user's chosen autonomy — per-phase auto-commits or full manual control — decided up front or from a saved preference.

Standalone Skills:

- **`/review`** — Run quality review agents on demand, independent of the build workflow.

- **`/debrief`** — Produce a structured, blameless debrief document after an incident, failed release, or significant bug.

Each phase persists its output to `docs/` so the next phase can discover it from a cold start.

**Fast path:** **`/hotfix`** — Streamlined workflow for emergency fixes. Skips brainstorm and planning but enforces review and testing. Use when speed matters but quality is still non-negotiable.

**Clear context handoff:** User-invocable skills (`user-invocable: true`) that have a forward transition (e.g., brainstorm → plan) must present **"Clear context and [next step]"** as the first handoff option. When selected, clear the context, then present the next skill's invocation, then stop. This gives the model a fresh context window without losing work. Skills invoked by other skills must not offer this — they return control to the caller instead.

Supporting skills:

- `/create` (project creation — routes to companion plugins)
- `/create-pr` (generate a PR title and description from branch commits and optionally open it on GitHub or GitLab)
- `/plan-technical-review` (review externally-authored plans; `/plan` reviews the plans it creates inline)
- `/refine-approach` (iterative document improvement)
- `/rebase` (sync feature branch with base branch)

Quality-review agents:

- `vgv-review-agent`
- `architecture-review-agent`
- `test-quality-review-agent`
- `code-simplicity-review-agent`
- `pr-readiness-review-agent`

Each agent writes a detailed report to a `raw/` subdirectory and returns a structured
findings list. The calling skill deduplicates and orders those findings, assigns stable
`FINDING-NN` ids (plus a stable `<category>/<rule>` id per finding for acting on a whole
class), and renders one consolidated report plus a matching chat summary (see
`skills/shared/references/review-consolidation.md`).

## Output Directories

- `docs/brainstorm/` — Brainstorm documents from `/brainstorm`
- `docs/plan/` — Implementation plans from `/plan`
- `docs/reviews/` — Consolidated `review.md` + per-agent `raw/` from `/build` (ephemeral, cleaned up by build)
- `docs/hotfix-review/` — Consolidated `review.md` + per-agent `raw/` from `/hotfix` (ephemeral, cleaned up by hotfix)
- `docs/code-review/` — One `<slug>/` directory per run (`review.md` + per-agent `raw/`) from `/review` (standalone, user-managed)
- `docs/debriefs/` — Debrief documents from `/debrief`

## Key Conventions

- **State management:** Enforce consistent usage of the project's chosen pattern. Flag deviations for review.
- **YAGNI:** Prefer the simplest solution that meets current requirements. Remove hypothetical features.
- **Architecture:** Respect the project's established layer boundaries and dependency direction. Flag violations for review.
- **Testing:** Non-negotiable. Every testable unit gets tests.

## Guidance

- Validate that new content does not conflict with [Very Good Engineering](https://engineering.verygood.ventures).
- Be concise but clear. Use active voice. Omit needless words.
- Technology-specific rules (linting, formatting, scaffolding) belong in companion plugins, not in Wingspan.
79 changes: 3 additions & 76 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,7 @@
# VGV Wingspan
@AGENTS.md

Wingspan is a collection of AI-assisted engineering tools — skills, agents, and hooks — released as a Claude Code plugin.

## Philosophy

Apply VGV's best practices and standards for scalable software to AI-assisted workflows. Each step of the development cycle should make subsequent steps clearer and closer to the user's intent. Build the right thing, build the thing right.

## Tech-Agnostic by Design

Wingspan handles the software development lifecycle — brainstorming, planning, building, and quality review. It does not enforce or assume any specific programming language, framework, or toolchain.

Technology-specific concerns (linting, formatting, scaffolding, framework conventions) belong in companion plugins. Wingspan's recommendation system detects project types and suggests the appropriate companion plugin automatically.

## Workflow

The plugin supports three sequential phases:

1. **`/brainstorm`** — Explore requirements and approaches through collaborative dialogue. Produces a brainstorm document.
2. **`/plan`** — Transform brainstorm output into an actionable implementation plan. Includes codebase review, optional external research, flow analysis, and a mandatory quality review of the draft. Splits large plans into phases so `/build` executes one phase per context window.
3. **`/build`** — Execute implementation plans: implement one phase per context window (implement → validate → commit → checkpoint → clear), run quality review, and ship a pull request. Committing and pushing follow the user's chosen autonomy — per-phase auto-commits or full manual control — decided up front or from a saved preference.

Standalone Skills:

- **`/review`** — Run quality review agents on demand, independent of the build workflow.

- **`/debrief`** — Produce a structured, blameless debrief document after an incident, failed release, or significant bug.

Each phase persists its output to `docs/` so the next phase can discover it from a cold start.

**Fast path:** **`/hotfix`** — Streamlined workflow for emergency fixes. Skips brainstorm and planning but enforces review and testing. Use when speed matters but quality is still non-negotiable.

**Clear context handoff:** User-invocable skills (`user-invocable: true`) that have a forward transition (e.g., brainstorm → plan) must present **"Clear context and [next step]"** as the first handoff option. When selected, display the `/clear` command followed by the next skill's invocation, then stop. This gives the model a fresh context window without losing work. Skills invoked by other skills must not offer this — they return control to the caller instead.

Supporting skills:

- `/create` (project creation — routes to companion plugins)
- `/create-pr` (generate a PR title and description from branch commits and optionally open it on GitHub or GitLab)
- `/plan-technical-review` (review externally-authored plans; `/plan` reviews the plans it creates inline)
- `/refine-approach` (iterative document improvement)
- `/rebase` (sync feature branch with base branch)

Quality-review agents:

- `vgv-review-agent`
- `architecture-review-agent`
- `test-quality-review-agent`
- `code-simplicity-review-agent`
- `pr-readiness-review-agent`

Each agent writes a detailed report to a `raw/` subdirectory and returns a structured
findings list. The calling skill deduplicates and orders those findings, assigns stable
`FINDING-NN` ids (plus a stable `<category>/<rule>` id per finding for acting on a whole
class), and renders one consolidated report plus a matching chat summary (see
`skills/shared/references/review-consolidation.md`).

## Output Directories

- `docs/brainstorm/` — Brainstorm documents from `/brainstorm`
- `docs/plan/` — Implementation plans from `/plan`
- `docs/reviews/` — Consolidated `review.md` + per-agent `raw/` from `/build` (ephemeral, cleaned up by build)
- `docs/hotfix-review/` — Consolidated `review.md` + per-agent `raw/` from `/hotfix` (ephemeral, cleaned up by hotfix)
- `docs/code-review/` — One `<slug>/` directory per run (`review.md` + per-agent `raw/`) from `/review` (standalone, user-managed)
- `docs/debriefs/` — Debrief documents from `/debrief`
<!-- First line is the @AGENTS.md import (Claude Code memory), not a heading. -->
<!-- markdownlint-disable-file MD041 -->

## Hooks

Expand Down Expand Up @@ -100,16 +40,3 @@ A `PreToolUse` hook runs on every `Read`, `Glob`, or `Grep` call. It detects the
| `description` | One-line summary shown in the recommendation |

**Adding a new recommendation:** Drop a JSON file in `hooks/recommendations/` following the format above. No code changes required. All matching files are evaluated.

## Key Conventions

- **State management:** Enforce consistent usage of the project's chosen pattern. Flag deviations for review.
- **YAGNI:** Prefer the simplest solution that meets current requirements. Remove hypothetical features.
- **Architecture:** Respect the project's established layer boundaries and dependency direction. Flag violations for review.
- **Testing:** Non-negotiable. Every testable unit gets tests.

## Guidance

- Validate that new content does not conflict with [Very Good Engineering](https://engineering.verygood.ventures).
- Be concise but clear. Use active voice. Omit needless words.
- Technology-specific rules (linting, formatting, scaffolding) belong in companion plugins, not in Wingspan.