agentleFS
sharmapuneet1510sharmapuneet1510/awesome-prompts/archify/SKILL.md

archify

Skill4 starsChanged 6 months agoMITView on GitHub

Generate interactive architecture, workflow, sequence, data flow, and lifecycle diagrams as self-contained HTML with verified evidence grounding. Key Principles: - Use stable, semantic IDs (e.g., auth-service, not node-42) - Map nodes to evidence (file paths, commits, URLs) - Use semantic colors (frontend, backend, database, security, cloud, messaging, external) - Write clear labels and descriptions Example Minimal Diagram: Common fixes: - Missing required field → add it - Unknown node reference → check spelling or add node - Workflow missing start/end…

47 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use archify-review, hyperframes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Rajveerx11Skill

    archify-review

    Review Archify issues, PRs, or code through value, cost, and impact to support evidence-based maintenance decisions. Use for issue triage, change reviews, and code quality assessments.

    Also in 3 projects that use this

  • OpenAISkill

    hyperframes

    Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation (beat sync, glow, pulse driven by music), add animated text highlighting (marker sweeps, hand-drawn circles, burst lines, scribble, sketchout), or add transitions between scenes (crossfades, wipes, reveals, shader transitions). Covers composition authoring, timing, media, and the full video production workflow. For CLI commands (init, lint, preview, render, transcribe, tts) see the hyperframes-cli skill.

    Also in 3 projects that use this

  • GoogleSkill

    ponytail

    Forces the laziest solution that actually works, simplest, shortest, most minimal. Channels a senior dev who has seen everything: question whether the task needs to exist at all (YAGNI), reach for the standard library before custom code, native platform features before dependencies, one line before fifty. Supports intensity levels: lite, full (default), ultra. Use on ANY coding task: writing, adding, refactoring, fixing, reviewing, or designing code, and choosing libraries or dependencies. Also use whenever the user says "ponytail", "be lazy", "lazy mode", "simplest solution", "minimal solution", "yagni", "do less", or "shortest path", or complains about over-engineering, bloat, boilerplate, or unnecessary dependencies. Do NOT use for non-coding requests (general knowledge, prose, translation, summaries, recipes).

    Also in 3 projects that use this

  • OpenAISkill

    using-superpowers

    Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions

    Also in 3 projects that use this

  • CloudflareSkill

    receiving-code-review

    Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation

    Also in 3 projects that use this

  • +7 more from openai

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 4

    Distinctive

    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:

    Before writing, read the relevant schema definition in schema/schema.ts to understand required fields.

    line 15
  2. Very specific:

    Look at the corresponding example in examples/ to see the exact structure and conventions:

    line 18
  3. Very specific:

    Follow the authoring guide (docs/authoring-guide.md) and create a JSON diagram:

    line 26
  4. Very specific:

    Use stable, semantic IDs (e.g., auth-service, not node-42)

    line 29
  5. Distinctive:

    Use semantic colors (frontend, backend, database, security, cloud, messaging, external)

    line 31
  6. Distinctive:

    Write clear labels and descriptions

    line 32
  7. Distinctive:

    Read the diagnostic output and repair your diagram:

    line 68
  8. Distinctive:

    Check diagram against schema and all validation rules.

    line 113

“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “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

Archify: Diagram-as-Code Skill

Generate interactive architecture, workflow, sequence, data flow, and lifecycle diagrams as self-contained HTML with verified evidence grounding.

How to Use

1. Pick Your Diagram Type

  • Architecture — System components, zones, dependencies (e.g., microservices)
  • Workflow — Step-by-step processes with decisions (e.g., order fulfillment)
  • Sequence — Timed message exchanges (e.g., OAuth2, API calls)
  • DataFlow — Data transformations and pipelines (e.g., analytics)
  • Lifecycle — Project phases and transitions (e.g., release stages)

2. Read the Schema

Before writing, read the relevant schema definition in schema/schema.ts to understand required fields.

3. Study an Example

Look at the corresponding example in examples/ to see the exact structure and conventions:

  • architecture-example.json
  • workflow-example.json
  • sequence-example.json
  • dataflow-example.json
  • lifecycle-example.json

4. Author Your Diagram

Follow the authoring guide (docs/authoring-guide.md) and create a JSON diagram:

Key Principles:

  • Use stable, semantic IDs (e.g., auth-service, not node-42)
  • Map nodes to evidence (file paths, commits, URLs)
  • Use semantic colors (frontend, backend, database, security, cloud, messaging, external)
  • Write clear labels and descriptions

Example Minimal Diagram:

{
  "type": "architecture",
  "version": "1.0.0",
  "title": "My System",
  "nodes": [
    { "id": "web", "label": "Web App", "color": "frontend" },
    { "id": "api", "label": "API", "color": "backend" },
    { "id": "db", "label": "Database", "color": "database" }
  ],
  "edges": [
    { "id": "e1", "from": "web", "to": "api", "label": "HTTP" },
    { "id": "e2", "from": "api", "to": "db", "label": "SQL" }
  ]
}

5. Validate

Validate your diagram using the CLI:

cat your-diagram.json | node bin/archify.mjs validate

Output:

✓ Validation passed
  Nodes: 3
  Edges: 2
  Warnings: 1
    ⚠ Node 'web' lacks evidence tie

6. Fix Errors & Warnings

Read the diagnostic output and repair your diagram:

  • Errors (block delivery) — must fix
  • Warnings (recommended) — should fix
  • Info (feedback) — nice-to-have

Common fixes:

  • Missing required field → add it
  • Unknown node reference → check spelling or add node
  • Workflow missing start/end → add start/end nodes
  • Sequence out of order → fix order field

7. Deliver

Once validation passes:

cat your-diagram.json | node bin/archify.mjs deliver

Output:

{
  "delivered": true,
  "sha256": "a1b2c3d4...",
  "size": 2847,
  "type": "architecture",
  "title": "My System",
  "version": "1.0.0",
  "nodeCount": 3,
  "edgeCount": 2
}

The checksum proves deterministic, bit-perfect output.

8. View & Export

The delivered diagram is a self-contained HTML file. Use it to:

  • Download SVG (for presentations)
  • Download PNG (for documents)
  • Share via link (no server required)
  • Inspect interactive details (hover, zoom, toggle theme)

CLI Reference

validate

Check diagram against schema and all validation rules.

cat diagram.json | node bin/archify.mjs validate

Exit codes:

  • 0 = valid (0 errors)
  • 1 = invalid (errors present)

deliver

Validate, freeze spec, and generate checksums.

cat diagram.json | node bin/archify.mjs deliver

Output: JSON with SHA-256 and metadata.

preview

Generate HTML preview for browser inspection.

cat diagram.json | node bin/archify.mjs preview

Output: Path to temporary HTML file.


Validation Rules

Errors (Block Delivery)

RuleWhenFix
Missing typeNo type fieldAdd: "type": "architecture" (or workflow, etc.)
Invalid typetype not in [architecture, workflow, ...]Use a valid type
Missing versionNo version fieldAdd: "version": "1.0.0"
Missing titleNo title fieldAdd: "title": "My Diagram"
Empty nodesnodes array is emptyAdd at least 1 node
Unknown node refEdge references non-existent nodeCheck node IDs or add missing node
Workflow no startNo node with type: "start"Add start node
Workflow no endNo node with type: "end"Add end node
Sequence bad orderMessages not in order (1, 2, 3, ...)Fix order field to be monotonic
Sequence < 2 participantsLess than 2 participantsAdd participants

Warnings (Recommended)

RuleWhenFix
Missing evidenceHigh-value node (security, database, etc.) has no evidence tieAdd evidence: { file, lines, commit, url }
Orphaned nodeNode has no incoming or outgoing edgesConnect it or remove it
Empty zoneZone declared but has no nodesAdd nodes to zone or remove it
Color mismatchNode color doesn't reflect its typeConsider different color

Schema Overview

Each diagram type has a specific schema. All share:

  • type (required) — diagram type
  • version (required) — semver (e.g., "1.0.0")
  • title (required) — human-readable name
  • description (optional) — longer explanation
  • nodes (required) — array of components
  • edges (optional) — array of relationships
  • metadata (optional) — author, created, updated

Node Properties

  • id (required) — stable, semantic ID (alphanumeric + hyphens)
  • label (required) — display name
  • color (required) — semantic color (frontend, backend, database, security, cloud, messaging, external)
  • evidence (optional) — proof: { file, lines, commit, url }
  • description (optional) — explain purpose

Edge Properties

  • id (required) — stable edge ID
  • from (required) — source node ID
  • to (required) — target node ID
  • label (optional) — relationship description
  • evidence (optional) — proof of connection

Common Patterns

Architecture with Zones

{
  "type": "architecture",
  "nodes": [...],
  "zones": [
    { "id": "client", "label": "Client Layer" },
    { "id": "api", "label": "API Layer" }
  ]
}

Workflow with Decisions

{
  "type": "workflow",
  "nodes": [
    { "id": "start", "type": "start", ... },
    { "id": "check", "type": "decision", ... },
    { "id": "end", "type": "end", ... }
  ]
}

Sequence with Message Types

{
  "type": "sequence",
  "messages": [
    { "id": "m1", "type": "sync", "order": 1, ... },
    { "id": "m2", "type": "async", "order": 2, ... },
    { "id": "m3", "type": "return", "order": 3, ... }
  ]
}

Authoring Workflow

1. Choose type (architecture, workflow, etc.)
2. Read schema/schema.ts
3. Study examples/[type]-example.json
4. Author diagram.json (start with required fields)
5. Validate: cat diagram.json | node bin/archify.mjs validate
6. Read errors/warnings
7. Repair diagram
8. Revalidate (go to step 5)
9. Deliver: cat diagram.json | node bin/archify.mjs deliver
10. Get SHA-256 checksum (proof of bit-perfect output)

Evidence Grounding

The most powerful feature: every node/edge can tie to source code.

Example:

{
  "id": "auth-service",
  "label": "Auth Service",
  "evidence": {
    "file": "src/services/auth/service.ts",
    "lines": "42-120",
    "commit": "abc1234"
  }
}

This means: "The Auth Service is defined in src/services/auth/service.ts, lines 42-120, commit abc1234."

Why it matters:

  • Diagrams stay synchronized with code
  • Future readers can find the implementation
  • Reviewers verify against source
  • Enables automated consistency checks

Best Practices

  1. Read before writing — Never guess the schema; read the example
  2. Stable IDs — Use semantic, immutable IDs (auth-service, not node-42)
  3. Evidence on high-value nodes — Security, database, external services should have evidence
  4. Clear labels — 2-4 words, descriptive (not abbreviated)
  5. Semantic colors — Match color to node type (blue for frontend, green for backend)
  6. Validate early — Check after each meaningful edit
  7. Fix errors first — Errors block delivery; warnings are optional

Troubleshooting

ErrorCauseFix
"Unknown node 'x-service'"Typo in node IDCheck spelling in schema example; copy-paste if needed
"Workflow missing start"No node with type: "start"Add { "id": "start", "label": "Start", "type": "start", ... }
"Message order not monotonic"Order field not increasing (1, 2, 3...)Renumber messages in order
"Zone 'x' has no nodes"Zone declared but emptyAdd nodes with zone: "x" or remove zone
"Checksum mismatch"Diagram changed between validatesInput must be byte-identical for reproducibility

Files & References

  • schema/schema.ts — TypeScript/Zod definitions (source of truth)
  • examples/ — 5 complete, validated examples
  • docs/authoring-guide.md — Detailed LLM authoring instruction
  • docs/validation-rules.md — All validation rules
  • bin/archify.mjs — CLI tool (validate, deliver, preview)
  • validator/ — Validation implementation
  • renderer/ — SVG generation and layout

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.