Doc

From rakovi4/continue-framework · View interactive version

Doc is an AI agent skill from the GitHub repository rakovi4/continue-framework. Document findings, research, or knowledge into ProductSpecification/ with proper cross-references. Use when the user wants to write up research results, create a reference doc, consolidate scattered knowledge, or mentions /doc command. Also triggers on "document this", "write this up", "let's captur

How to use this skill

Skill file

/doc - Document Findings

Capture knowledge from a session into a well-structured document under ProductSpecification/, with bidirectional cross-references to related specs, stories, and tasks.

Why This Exists

Research, API discoveries, and architectural findings get lost across conversations. This skill ensures knowledge is captured once, in one canonical location, with links from every document that needs it — so future sessions find the information without re-discovering it.

Usage

/doc                              # Interactive — asks what to document
/doc "task ordering strategy"     # Topic hint

Workflow

Round 1: What and Where

Gather from user:

  1. What are we documenting? Summarize the findings in 1-2 sentences. If the current conversation already contains research/findings, extract the summary automatically and confirm with the user.
  1. Where should it live? Propose a location based on the topic:

Decision aid: If the findings are specific to one task/story, keep them in that folder. If they're reusable across multiple stories or tasks, create a shared location.

  1. Filename: Propose based on content (e.g., research.md, README.md, {topic}.md). Confirm with user.

Round 2: Cross-References

Identify automatically, confirm with user:

  1. What should reference this doc? (inbound links)
  1. What should this doc reference? (outbound links)

Present both lists to the user. They can add/remove entries.

Round 3: Write and Link

  1. Write the document with this structure:
  1. Update referencing docs — add links in the files identified in Round 2 (inbound references). Use relative paths. Add links in contextually appropriate sections — don't just append to the end.
  1. Update indexes:
  1. Commit all changes with message: docs: {short description}

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.