From tdk-core
Generate or update the Document Manager index for workspace and sub-workspace docs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tdk-core:tdk-config-indexThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate or update `document-manager.md` - an index file that helps AI understand the docs structure and read priority.
Generate or update document-manager.md - an index file that helps AI understand the docs structure and read priority.
Creates/updates {docs.path}/document-manager.md
apps/frontend/{docs.path}/document-manager.md){docs.path}/document-manager.md)--sub-workspace NAME: Target specific sub-workspace--full: Full rebuild (regenerate all descriptions)Parse user input for sub-workspace targeting:
--sub-workspace NAME in command args--full flag is specifiedRun bash script:
# If sub-workspace specified:
cd $CLAUDE_PROJECT_DIR/.specify/scripts/ts && bun src/commands/config/index.ts --sub-workspace {SUB_WORKSPACE_NAME} [--full]
# Otherwise (workspace level):
cd $CLAUDE_PROJECT_DIR/.specify/scripts/ts && bun src/commands/config/index.ts [--full]
CRITICAL: Handle script errors:
On success only: Parse JSON output into variables:
DOCS_DIR - Docs directory pathMANAGER_FILE - Path to document-manager.mdHAS_MANAGER - Whether document-manager.md existsMODE - "create" | "incremental" | "full_rebuild"FILES - Array of file objects with path, size, modifiedIf MODE = "create" or "full_rebuild":
If MODE = "incremental":
document-manager.mdFor each file needing description:
System documents (auto-generated):
rules/ folder typically auto-generatedCustom documents (user-managed):
Use this template:
# Document Manager
> Auto-generated by /tdk-config-index
> Last updated: {YYYY-MM-DD HH:MM}
## Read Priority
When working in a sub-workspace, AI reads documents in this order:
1. **Sub-workspace local** (`{sub-workspace}/{docs.path}/`)
2. **Workspace base** (`{workspace}/{docs.path}/`)
If same file exists in both -> Sub-workspace wins (override).
## System Documents
| File | Purpose | Generated By |
|------|---------|--------------|
{FOR EACH system document}
| `{path}` | {description} | {generator command} |
{END FOR}
## Custom Documents
| File | Purpose |
|------|---------|
{FOR EACH custom document}
| `{path}` | {description} |
{END FOR}
---
*Run `/tdk-config-index` to refresh this index.*
*Run `/tdk-config-index --full` to rebuild from scratch.*
{MANAGER_FILE}Output:
Document Manager updated: {MANAGER_FILE}
Mode: {MODE}
Files indexed: {count}
- System documents: {count}
- Custom documents: {count}
Changes: {new_count} added, {deleted_count} removed
docs:diff - Compare workspace vs sub-workspace docsdocs:sync - Sync docs between workspace and sub-workspaceGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub vinhltt/tdk --plugin tdk-core