بنقرة واحدة
tdk-config-sync
Synchronize documentation files between workspace and sub-workspaces.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Synchronize documentation files between workspace and sub-workspaces.
التثبيت باستخدام 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-sync |
| description | Synchronize documentation files between workspace and sub-workspaces. |
| metadata | {"version":"1.0.0"} |
Synchronize documentation files between parent workspace and sub-workspaces. Shows diff preview before syncing (unless --force).
--from-sub-workspace NAME: Sync sub-workspace docs to parent workspace--to-sub-workspace NAME: Sync parent shared docs to sub-workspace--all: Sync all sub-workspaces docs to parent--force: Skip diff preview, direct sync--dry-run: Preview what would happen without making changesParse user input:
--from-sub-workspace NAME, --to-sub-workspace NAME, or --all--force flag--dry-run flagIf no direction specified:
Skip this step if --force is specified.
For --from-sub-workspace or --to-sub-workspace:
Run diff script first:
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/diff.ts --sub-workspace {SUB_WORKSPACE_NAME})
' -- "<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:
Display diff summary:
Diff Preview: {SUB_WORKSPACE_NAME} <-> workspace
+--------------------------+-------------+---------------------+
| File | Status | Details |
+--------------------------+-------------+---------------------+
| rules/code/naming.md | Modified | +15 -3 lines |
| rules/code/style.md | New | Sub-workspace only |
+--------------------------+-------------+---------------------+
Summary: {modified} modified | {new} new | {identical} identical
Ask user to proceed with AskUserQuestion:
If user selects "Show Details":
--detailed flagIf user selects "Cancel":
Run sync script:
# From sub-workspace to parent:
# Add --dry-run and/or --force 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/util/sync-docs.ts --from-sub-workspace {NAME})
' -- "<agent-resolved-project-root>"
# From parent to sub-workspace:
# Add --dry-run and/or --force 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/util/sync-docs.ts --to-sub-workspace {NAME})
' -- "<agent-resolved-project-root>"
# All sub-workspaces:
# Add --dry-run and/or --force 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/util/sync-docs.ts --all)
' -- "<agent-resolved-project-root>"
CRITICAL: Handle script errors:
If workspace has files not in sub-workspace (when syncing from sub-workspace):
Files in target not found in source:
- old-feature/spec.md
- deprecated/config.md
These files will NOT be deleted automatically.
Action: [K] Keep all [D] Delete manually (show paths)
If user selects "Delete manually":
Output:
Sync completed successfully!
Direction: {direction}
Files synced: {count}
- New: {new_count}
- Updated: {modified_count}
Suggestion: Run /tdk-config-index to refresh document index.
/tdk-config-sync --from-sub-workspace frontend
/tdk-config-sync --to-sub-workspace frontend
/tdk-config-sync --all
/tdk-config-sync --from-sub-workspace frontend --force
/tdk-config-sync --from-sub-workspace frontend --dry-run
docs:diff - Compare workspace vs sub-workspace docs (without syncing)docs:index - Generate document manager index