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.

rulesnaming-docs-files.md

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

kebab-case for Files Under docs/

Impact: CRITICAL (URLs, search, and grep all behave better with lowercase-hyphenated names)

Files under docs/ get linked, served as URLs by static-site generators, and grepped daily. kebab-case (lowercase, hyphen-separated) avoids case-sensitivity bugs, generates clean URLs (docs/deployment-guide.md → /deployment-guide), and is the dominant convention across documentation sites.

Incorrect

❌ Mixed cases, spaces, underscores, PascalCase
docs/
├── DeploymentGuide.md          # PascalCase
├── deployment_guide.md         # snake_case
├── Deployment Guide.md         # spaces — break URLs
├── Architecture Overview.md    # spaces + Title Case
├── api-Reference.md            # mixed case
├── data_model.MD               # uppercase extension
└── Onboarding.md               # initial capital

Problems:

  • Mixed conventions force readers to guess each filename
  • Spaces in filenames produce %20-encoded URLs that are hard to type and look broken
  • Case mismatches between branches cause "file not found" on Linux CI while working on macOS/Windows
  • Static-site generators usually lowercase URLs anyway, so DeploymentGuide.md and deployment-guide.md collide

Correct

✅ Consistent kebab-case throughout docs/
docs/
├── architecture/
│   ├── overview.md
│   ├── data-model.md
│   └── service-boundaries.md
├── guides/
│   ├── deployment-guide.md
│   ├── local-development.md
│   ├── getting-started.md
│   └── api-reference.md
└── runbooks/
    ├── incident-response.md
    └── deploy-production.md

Benefits:

  • Predictable: anyone can guess the filename from the topic
  • URL-friendly: /docs/guides/deployment-guide reads naturally
  • Case-safe: lowercase eliminates case-sensitivity differences across OSes
  • Greppable: grep -rn 'deployment-guide' docs/ always finds the file

Conventions

  • All lowercase — deployment-guide.md, not Deployment-Guide.md
  • Hyphens, not underscores — data-model.md, not data_model.md
  • No spaces — ever
  • .md extension lowercase — .md, not .MD
  • Keep names short — 2–4 words ideal; if you need 6, the doc may be doing too much
  • Use nouns or noun-phrases — deployment-guide.md, not how-to-deploy.md (the folder structure already conveys the verb)

Detection

# Find files in docs/ with bad casing or characters
find docs/ -name '*.md' | grep -E '[A-Z]|[[:space:]]|_'

Any hit is a candidate for renaming via git mv. Add a markdownlint rule or a CI grep to prevent regression.

Reference: Diátaxis — naming · Markdownlint

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