Skip to content
Back to skills

Blueprint

ASecurity

Keep simple architecture/data/flow diagrams up to date when the project gets structurally complex.

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythonbashdatabaseci/cd

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add HaipingShi/coderail --skill blueprint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Blueprint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Blueprint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/haipingshi-blueprint/badge)](https://www.skillsdirectory.com/skills/haipingshi-blueprint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: blueprint
description: Keep simple architecture/data/flow diagrams up to date when the project gets structurally complex.
---

# Blueprint Gate

Use this skill when architecture, lifecycle, data, deployment, UI flow, or cross-layer complexity appears — or when `check`/`done` prints a `== Blueprints ==` notice.

## Action

Check coverage (the tool detects which diagrams THIS codebase needs from real code signals):

```bash
python .coderail/coderail.py blueprint
```

Fill the gaps automatically — creates Mermaid stubs under `docs/blueprints/` and marks index rows `planned`:

```bash
python .coderail/coderail.py blueprint --scaffold        # required + stale gaps
python .coderail/coderail.py blueprint --scaffold --all  # also recommended
```

Then replace each stub's placeholder shapes with the project's real structure and set its row in `docs/BLUEPRINTS.md` to `current`.

For documents with CodeRail managed regions, refresh only the region whose
declared sources changed:

```bash
python .coderail/coderail.py knowledge query "architecture term"
python .coderail/coderail.py knowledge refresh --document docs/BLUEPRINTS.md --changed-files path/to/source --confirm region-id
```

Managed refreshes preserve prose outside the markers, do not rewrite unrelated
regions, and become `stale` rather than pretending freshness when changed source
facts have not been confirmed.

## Diagram Classes

1. User & Interaction Layer
2. System & Application Architecture Layer
3. Data & Model Layer
4. Deployment & Operations Layer

## Core Diagrams

- `UJM` User Journey Map
- `UF` User Flow
- `PF` Page Flow / Wireframe Flow
- `SA` System Architecture
- `CD` Component Diagram
- `SEQ` Sequence Diagram
- `SM` State Machine Diagram
- `ERD` ER Diagram / Database Model
- `DFD` Data Flow Diagram
- `DD` Deployment Diagram
- `CICD` CI/CD Pipeline Flow

## Lifecycle

Use one status per diagram:

- `planned`
- `current`
- `stale`
- `missing`
- `not-applicable`

## Rules

- Do not create diagrams as ceremony. Create the smallest useful diagram that reduces structural uncertainty.
- Mark `not-applicable` deliberately; do not use it to hide unknown architecture.
- Mark diagrams `stale` when code, schema, deployment, or user flow changes invalidate them.
- Prefer PlantUML, Mermaid, draw.io, or linked design tools that can be reviewed and versioned.
- When `doctor.py` reports Blueprint Gate severe items, resolve them before treating high-complexity work as done.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.