All skills
asyrafhussin avatar

/project-docs

@6cadc91

Project documentation lifecycle for PHP/Laravel and Node/TypeScript/React projects — bootstrapping essential docs, naming and folder conventions, freshness, and cleanup of AI-generated junk and stale files. Use when starting a new project, setting up docs/ structure, auditing markdown files, cleaning up the docs folder, or deciding which docs to keep, archive, or delete. Triggers on "set up docs", "audit docs", "clean up markdown", "what docs does this project need", "organize docs folder", "find stale docs".

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/project-docs

This session only. Nothing lands on disk.

rulesstructure-subfolders.md

≈849 tokens on demand. Your agent reads this file only when SKILL.md points to it.

docs/ Sub-folder Layout

Impact: HIGH (Different doc kinds have different audiences and lifecycles — separate them)

A flat docs/ works for 5 files and falls apart at 20. Sub-folders by purpose (architecture, ADRs, guides, runbooks, archive) make docs scannable and let you apply different freshness/ownership rules per folder.

Incorrect

❌ Flat docs/ — everything mixed together
docs/
├── overview.md
├── deployment.md
├── adr-001.md
├── adr-002.md
├── api.md
├── incident-response.md
├── data-model.md
├── q3-launch-plan.md
├── superseded-design.md
└── onboarding.md

Problems:

  • Architecture, ADRs, guides, and runbooks all live in one bucket — no separation of concerns
  • Superseded docs (superseded-design.md) sit next to current docs — confusing
  • A reader looking for "the runbook" has to scan everything
  • Can't apply different rules (e.g., "runbooks need an owner; archive doesn't")

Correct

✅ Purpose-based sub-folders
docs/
├── architecture/         # how the system is built (long-lived, slow-changing)
│   ├── overview.md
│   └── data-model.md
├── adr/                  # decisions made (append-only, numbered)
│   ├── 0001-record-architecture-decisions.md
│   └── 0002-choose-mysql-over-postgres.md
├── guides/               # how-to for developers (medium-lived, task-oriented)
│   ├── getting-started.md
│   ├── deployment.md
│   └── local-development.md
├── runbooks/             # ops procedures (short-titled, action-focused)
│   ├── deploy-production.md
│   └── incident-response.md
├── api/                  # API references (often generated; OpenAPI/Swagger)
│   └── openapi.yaml
└── archive/              # superseded but kept for history
    ├── 2024/
    └── 2025/

Benefits:

  • Each folder has a clear purpose and audience
  • Archive is visually separated from current docs
  • Easy to apply per-folder rules (CODEOWNERS, freshness checks)
  • Maps naturally to Diátaxis categories (tutorials/how-to/reference/explanation)

Diátaxis correspondence

Sub-folder Diátaxis Audience
guides/getting-started.md Tutorial First-time users
guides/deployment.md How-to Engineers performing a task
architecture/ Explanation Engineers building understanding
api/ Reference Engineers looking up specifics
adr/ Decision record Engineers asking "why?"
runbooks/ How-to (ops) On-call engineers

Add folders as needed

  • docs/security/ — threat models, security architecture, audit reports
  • docs/onboarding/ — new-hire orientation, codebase tour
  • docs/proposals/ — RFCs / design proposals (before they become ADRs)
  • docs/meeting-notes/ — only if you'll actually maintain them; otherwise use the issue tracker

Don't pre-create empty folders. Add them when you have at least two docs that belong inside.

Reference: Diátaxis · adr.github.io

Source: SKILL.md on GitHub

No alerts16d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a comprehensive documentation lifecycle management tool for PHP/Laravel and Node.js projects. It provides a set of 25 rules for organizing, naming, and maintaining project documentation. The analysis found no security issues; the skill utilizes standard auditing practices and suggests well-known industry tools for documentation linting and quality assurance.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at 6cadc91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 5 months ago
metadata
{
  "author": "agent-skills",
  "version": "1.0.0"
}

README badge

README badge for asyrafhussin/agent-skills/project-docs