一键导入
tdk-config-index
Generate or update the Document Manager index for workspace and sub-workspace docs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate or update the Document Manager index for workspace and sub-workspace docs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
Primary implementation skill. Execute phases from plan.md ## Phases table. Read plan.md as source of truth for status + dependency graph.
Execute the implementation planning workflow using the plan template to generate design artifacts.
Create spec.md from a feature or child-slice description, or replay --interview against existing spec.md. Supports --fast, memory, and an embedded quality gate.
Project-level architecture recommendation and brownfield recovery advisor. Writes architecture reports only; does not mutate layout or config.
Deprecated compatibility route for /tdk-workspace-layout-propose.
| name | tdk-config-index |
| description | Generate or update the Document Manager index for workspace and sub-workspace docs. |
| metadata | {"version":"1.0.0"} |
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:
# Add --full when needed.
bash -lc '
PROJECT_DIR="$1"
if [ -z "$PROJECT_DIR" ] || [ ! -d "$PROJECT_DIR/.specify/scripts/ts" ]; then
echo "Invalid project root: $PROJECT_DIR" >&2
exit 1
fi
(cd "$PROJECT_DIR/.specify/scripts/ts" && bun src/commands/config/index.ts --sub-workspace {SUB_WORKSPACE_NAME})
' -- "<agent-resolved-project-root>"
# Otherwise (workspace level):
# Add --full when needed.
bash -lc '
PROJECT_DIR="$1"
if [ -z "$PROJECT_DIR" ] || [ ! -d "$PROJECT_DIR/.specify/scripts/ts" ]; then
echo "Invalid project root: $PROJECT_DIR" >&2
exit 1
fi
(cd "$PROJECT_DIR/.specify/scripts/ts" && bun src/commands/config/index.ts)
' -- "<agent-resolved-project-root>"
Ask the user for the project root if <agent-resolved-project-root> cannot be identified confidently; do not pass the placeholder literally.
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-workspace