Add --focus mode to document-this for feature-scoped doc subfolders#39
Merged
Conversation
Ports the improvements made in the thundercloud (DPQ) codebase back to the shared skill. /document-this --focus "<Feature Name>" generates a deep-dive docs subfolder (generated-docs/<slug>/) with feature-scoped workflows.md, architecture.md, and slug-prefixed diagrams. Includes new focus templates, a Deep dives block in the README template, and a targeted-update variant scoped to the focus subfolder. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new --focus "<Feature Name>" mode to the document-this skill so agents can generate feature-scoped “deep dive” documentation subfolders under generated-docs/<slug>/, and optionally link them from the top-level docs.
Changes:
- Extends
document-thisskill instructions to define a focused generation process (Phases F1–F4), slug rules, and a--focustargeted-update flow. - Adds new focus-mode templates for feature-scoped
workflows.mdandarchitecture.md. - Updates the top-level README template (and AGENTS.md summary) to mention/link focus subfolders.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/document-this/templates/README.template.md | Adds an optional “Deep dives” section for linking focus-mode subfolders and updates regeneration instructions. |
| skills/document-this/templates/focus-workflows.template.md | New template scaffold for feature-scoped workflows documentation. |
| skills/document-this/templates/focus-architecture.template.md | New template scaffold for feature-scoped architecture documentation and diagrams. |
| skills/document-this/SKILL.md | Documents --focus invocation, output structure, slug rules, phased process, and targeted-update behavior. |
| AGENTS.md | Updates the document-this summary to mention --focus. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
stephenfinch
requested review from
connortorrell,
jdmcleod and
macgyver-rolemodel
July 20, 2026 15:15
wesrich
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports
document-thisimprovements developed in a consuming project back into the shared skills repo so other projects can use them./document-this --focus "<Feature Name>"now generates a self-contained deep-dive subfolder for a single feature/subsystem:Changes
--focusvariant of targeted updates, and focus-mode quality rules (scope discipline, no README/ai-orientation in subfolders, back-links to top-level docs).{{FOCUS_SUBFOLDERS}}"Deep dives" block so the top-level README links to any focus subfolders.--focus.Scripts are unchanged.
🤖 Generated with Claude Code