A command dispatcher. This file does not do the work itself — it routes to the right command, which routes to the right workflow, which injects the right memory.
Read only the command file that matches the request. Do not read all commands simultaneously.
- All generated documentation lives under
/docs. Never write API references, guides, or generated READMEs to another location. (README.mditself stays at the project root, per convention — everything else generated goes in/docs.) generatenever invents content. It only writes docs from whatcollectgathered (or equivalent detail the user supplies directly in the conversation) — never from assumed signatures, assumed env vars, or assumed behavior. If required detail is missing,generatesays what's missing and asks or falls back to runningcollectfirst.- Stack rules are looked up, never guessed. Before writing any code-level doc (API reference, inline comments), load the matching file under
memory/stacks/for the language/framework actually in use. Do not mix PHPDoc conventions into a TypeScript file or vice versa. site,vitepress,mkdocs, anddocsifyonly organize and publish what's already in/docs. They never author new documentation content — that'sgenerate's job.- For VitePress: Generate ESM
config.mjs, inject luxury typography (Alexandria+Cairo+JetBrains Mono), enforce surgical RTL navbar order, single-row Hero action CTAs (white-space: nowrap), and explicit 3-column card widths (width: 33.333333% !important) with BiDi protection (unicode-bidi: plaintext). Build cleanly withnpx vitepress build docs. - For MkDocs Material: Generate standard
mkdocs.yml, configure Neo-Brutalist CSS tokens (extra.css), configure Arabic/English i18n (*.ar.mdsuffix), and build cleanly withmkdocs build --strict. - For Docsify: Include
alias: { '/.*/_sidebar.md': '/_sidebar.md' }and root-relative leading slashes/in_sidebar.mdto guarantee persistent sidebar navigation across all subfolder routes.
- For VitePress: Generate ESM
- Standalone. This skill does not read or depend on any other
tidyfactor-*skill's conventions, even when the project happens to be built on one of those tracks. - Zero Sensitive Data Leakage. Under absolutely no circumstances should any real sensitive data (e.g., real API tokens, WHM/cPanel passwords, production server IPs, real DB credentials, secret keys, private auth tokens, or local absolute drive paths) be written into documentation. ALWAYS redact and replace these with safe generic placeholders.
- Clean Relative Links Only. Never include local machine filesystem URLs (such as
file:///C:/...,file:c:, or absolute workstation paths) in documentation links or markdown cross-references. All document cross-links must use clean relative markdown paths or standard public web URLs (https://...).
- Do NOT use for writing marketing campaigns or sales copywriting (use
tidyfactor-marketing). - Do NOT use for platform infrastructure management or deployment tasks (use
tidyfactor-githubor ops skills).
- Execution Tools:
audit_docs(scripts/audit_docs.py): Sub-second AST scanner for documentation under/docs, rootREADME.md, andCHANGELOG.md. Audits credential leaks, machine-specific paths, broken relative links, and Keep a Changelog formatting.clean_orphaned_assets(scripts/clean_orphaned_assets.py): Scans markdown documents for image references, detects unreferenced orphan assets inassets/, detects duplicate assets via SHA-256 hashing, and reports WebP compression opportunities.
- Contract & Schema: Portably declared in
manifest.jsonwith"skill_root_anchor": "self". - Invocability: Executable via direct CLI or through
tidyfactor-brainMCPrun_skill_tool.
- Inside Skill: Static documentation templates, stack-specific docblock schemas, and local hygiene auditing scripts.
- MCP Layer: Sovereign Brain persistence (
search_knowledge_base,extract_knowledge_item) operating under the strict Fail-Open protocol (references/memory/20-brain-baas-integration.md).
brief (optional, architectural alignment & debate) → init → collect → adr (record technical decisions) → generate (repeatable, once per doc target) → site / vitepress / mkdocs / docsify → llms (AI agent indexing) → audit (quality, links & orphan verification before release).
