agentleFS
OneDro1dOneDro1d/dark-factory/skills/repo-docs/SKILL.md

repo-docs

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Generate comprehensive repository documentation following team standards. Use when creating README, CLAUDE.md, ARCHITECTURE.md, DESIGN_DECISIONS.md, or any project documentation. Includes Mermaid diagrams, status indicators, and AI context files.

16 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every document MUST begin with:

    line 45
  2. Distinctive:

    Use consistently throughout all documents:

    line 64
  3. Distinctive:

    Always link related documents:

    line 84
  4. Very specific:

    Use ## for main sections

    line 99
  5. Very specific:

    Use ### for subsections

    line 100
  6. Very specific:

    Use bold text instead of ##### or ######

    line 102
  7. Distinctive:

    Gather context: - Read existing code/docs

    line 163
  8. Distinctive:

    Apply template: - Use appropriate structure

    line 164
  9. Distinctive:

    Validate: - Run through checklist

    line 167

“Common” is measured: kept by at least 6 in 10 of the 13 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

Repository Documentation Generator

Generate high-quality, consistent documentation following team standards.

Overview

Creates documentation that follows the tiered document requirements, uses proper status indicators, includes visual diagrams, and maintains cross-references between documents.

Document Tiers

Tier 1: Essential (All Projects)

DocumentPurposeLocation
CLAUDE.mdAI assistant context for codebaseRoot
README.mdProject overview, quick startRoot
ARCHITECTURE.mdSystem architecture with diagramsdocs/
DESIGN_DECISIONS.mdTechnical rationale, axiomsdocs/

Tier 2: Operational (Deployed Systems)

DocumentPurposeLocation
DEPLOYMENT-[ENV].mdEnvironment-specific deploymentdocs/
MONITORING.mdObservability, metrics, alertingdocs/
RELIABILITY.mdFault tolerance, SLAs, recoverydocs/
TESTING-STRATEGY.mdTesting approaches, coveragedocs/

Tier 3: Supporting (As Needed)

DocumentPurposeLocation
AI_ONBOARDING.mdAI assistant quick startRoot
GITOPS-STRATEGY.mdCI/CD, automationdocs/
[TOPIC]-GUIDE.mdDeep-dives on topicsdocs/
diagrams/README.mdDiagram renderingdocs/diagrams/

Universal Document Structure

Every document MUST begin with:

# Document Title

Brief 1-2 sentence description of what this document covers.

## Table of Contents

- [Section 1](#section-1)
- [Section 2](#section-2)

---

## Section 1

Status Indicators

Use consistently throughout all documents:

EmojiMeaningUsage
✅Complete/WorkingFeature complete, test passing
⚠️Partial/WarningNeeds attention, partial impl
❌Missing/FailedNot implemented, blocker
📊Diagram/VisualCross-reference to visual

Example:

| Component | Status | Notes |
|-----------|--------|-------|
| Auth Service | ✅ Complete | v2.1.0 deployed |
| Rate Limiter | ⚠️ POC Only | Production needs Redis |
| Circuit Breaker | ❌ Not Implemented | Required for prod |

Cross-Reference Pattern

Always link related documents:

> 📊 **Visual Diagram**: See [Architecture Overview](diagrams/architecture-overview.png)

For deployment details, see **[DEPLOYMENT-EKS.md](DEPLOYMENT-EKS.md)**.

**Related Documents:**
- [ARCHITECTURE.md](ARCHITECTURE.md) - System design
- [RELIABILITY.md](RELIABILITY.md) - Fault tolerance

Heading Depth Rules

  • Maximum 4 levels (# to ####)
  • Use ## for main sections
  • Use ### for subsections
  • Use #### sparingly
  • Use bold text instead of ##### or ######

Content Patterns

See PATTERNS.md for detailed content patterns:

  • Axioms Pattern (principles with rationale)
  • Trade-offs Pattern (pros/cons tables)
  • Command Examples Pattern (copy-paste ready)
  • Configuration Pattern (YAML with comments)
  • Troubleshooting Pattern (symptom-based)
  • Version History Pattern (evolution tracking)

Visual Standards

Required Diagrams

Diagram TypePurposeFormat
Architecture OverviewHigh-level systemMermaid
Component InteractionMessage/data flowMermaid Sequence
Deployment TopologyInfrastructureGraphviz DOT

Mermaid Style Guidelines

graph TB
    subgraph "Kubernetes Cluster"
        API["API Container<br/>ASP.NET Core"]
        SM["Sidecar<br/>Go Service"]
    end

    RMQ["RabbitMQ<br/>Message Broker"]
    SM -->|publish| RMQ

    style API fill:#e1f5ff
    style SM fill:#ffe1f5
    style RMQ fill:#fff4e1

Colors:

  • Blue (#e1f5ff) - APIs
  • Pink (#ffe1f5) - Services
  • Yellow (#fff4e1) - Infrastructure

Document Templates

See TEMPLATES.md for complete templates:

  • CLAUDE.md template
  • README.md template
  • ARCHITECTURE.md template
  • DESIGN_DECISIONS.md template
  • MONITORING.md template
  • AI_ONBOARDING.md template

Quality Checklist

See CHECKLIST.md before finalizing any document.

Generation Process

  1. Identify document type - Which tier and template?
  2. Gather context - Read existing code/docs
  3. Apply template - Use appropriate structure
  4. Add diagrams - Mermaid for architecture
  5. Cross-reference - Link related documents
  6. Validate - Run through checklist

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.