Skip to content

Improve docs/ folder navigation #1803

Closed

Description

@josecelano

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.md with organized sections, short descriptions for each entry, and links to all subdirectories currently missing from the index.
  • Create docs/AGENTS.md covering: directory map, frontmatter convention, Markdown linting rules (repo files vs. GitHub surfaces), and a reference to the write-markdown-docs skill.
  • Update .github/skills/dev/planning/write-markdown-docs/SKILL.md to 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.json configuration.

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.md contains a section for every subdirectory and top-level file in docs/, each with a short description of its purpose.
  • docs/AGENTS.md exists and covers the directory map, frontmatter convention, Markdown linting scope distinction (repo files vs. GitHub surfaces), and a reference to the write-markdown-docs skill.
  • The write-markdown-docs skill includes a "Frontmatter" section referencing docs/skills/semantic-skill-link-convention.md and a section explaining that GitHub Markdown surfaces (issues, PRs) are not subject to .markdownlint.json rules and that line wrapping must not be applied to issue or PR body text.
  • linter all exits with code 0.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions