Repository navigation
Description
Goal
Make the docs/ folder easier to navigate for both human readers and AI agents by expanding the existing docs/index.md with structured sections and descriptions, adding a docs/AGENTS.md with AI-agent guidance, and updating the write-markdown-docs skill with missing rules about frontmatter and GitHub-vs-repo markdown.
Background
The current docs/index.md is a minimal flat list of links with no descriptions and no entries for several subdirectories (adrs/, refactor-plans/, pr-reviews/, skills/, templates/, licenses/, media/). A reader cannot tell from the index alone what each section covers or where to look for a specific type of artifact.
There is also no docs/AGENTS.md file, while the project already has directory-scoped AGENTS.md files for packages/ and src/. Without one, AI agents asked to write, find, or update documentation artifacts must infer the correct subdirectory and conventions from context instead of having explicit guidance.
Finally, the write-markdown-docs skill does not mention the frontmatter convention described in docs/skills/semantic-skill-link-convention.md, nor the difference between repo Markdown files (linted by .markdownlint.json) and GitHub Markdown surfaces (issues, PRs) that are not subject to the repo lint configuration.
Scope
In Scope
- Expand
docs/index.mdwith organized sections, short descriptions for each entry, and links to all subdirectories currently missing from the index. - Create
docs/AGENTS.mdcovering: directory map, frontmatter convention, Markdown linting rules (repo files vs. GitHub surfaces), and a reference to thewrite-markdown-docsskill. - Update
.github/skills/dev/planning/write-markdown-docs/SKILL.mdto add a frontmatter section and a section distinguishing repo Markdown from GitHub Markdown.
Out of Scope
- Restructuring or renaming any subdirectory under
docs/. - Writing or updating content of individual documentation files.
- Changing the
.markdownlint.jsonconfiguration.
Implementation Plan
| ID | Task | Notes |
|---|---|---|
| T1 | Expand docs/index.md with sections and descriptions |
Organized sections with one-line descriptions for every entry, including previously missing subdirectories |
| T2 | Create docs/AGENTS.md |
Directory map, frontmatter rules, linting scope (repo vs. GitHub), skill reference |
| T3 | Update write-markdown-docs skill |
New "Frontmatter" section and new "Repo Markdown vs. GitHub Markdown" section |
Acceptance Criteria
docs/index.mdcontains a section for every subdirectory and top-level file indocs/, each with a short description of its purpose.docs/AGENTS.mdexists and covers the directory map, frontmatter convention, Markdown linting scope distinction (repo files vs. GitHub surfaces), and a reference to thewrite-markdown-docsskill.- The
write-markdown-docsskill includes a "Frontmatter" section referencingdocs/skills/semantic-skill-link-convention.mdand a section explaining that GitHub Markdown surfaces (issues, PRs) are not subject to.markdownlint.jsonrules and that line wrapping must not be applied to issue or PR body text. linter allexits with code0.
References
- Spec:
docs/issues/drafts/improve-docs-folder-navigation.md - Frontmatter convention:
docs/skills/semantic-skill-link-convention.md - Markdown linting config:
.markdownlint.json - Write markdown docs skill:
.github/skills/dev/planning/write-markdown-docs/SKILL.md
Activity
docs: address Copilot review comments on PR torrust#1807 (torrust#1803)
docs(issues): add issue specification for torrust#1803
docs(index): expand docs/index.md with sections and descriptions (tor…
docs(agents): add docs/AGENTS.md with directory map and conventions (t…
docs(skills): add frontmatter and GitHub markdown sections to write-m…
docs(issues): update spec progress for torrust#1803 — T1, T2, T3 DONE
docs: address Copilot review comments on PR torrust#1807 (torrust#1803)
chore(issues): archive closed issue specs #1790, #1793, #1795, #1797, #…
Merge #1812: chore(issues): archive closed issue specs to docs/issues…
Merge torrust#1807: docs: improve docs/ folder navigation (torrust#1803)