How this skill is triggered — by the user, by Claude, or both
Slash command
/tdk-core:tdk-config-diffThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Show differences between workspace and sub-workspace documentation files. Helps identify what would change before syncing.
Show differences between workspace and sub-workspace documentation files. Helps identify what would change before syncing.
--sub-workspace NAME (required): Target sub-workspace to compare--detailed: Show actual file content differencesParse user input:
--sub-workspace NAME (required)--detailed flagIf no sub-workspace specified:
Run bash script:
cd $CLAUDE_PROJECT_DIR/.specify/scripts/ts && bun src/commands/config/diff.ts --sub-workspace {SUB_WORKSPACE_NAME} [--detailed]
CRITICAL: Handle script errors:
On success only: Parse JSON output into variables:
SUB_WORKSPACE_NAME - Name of sub-workspaceWORKSPACE_DOCS - Workspace docs pathSUB_WORKSPACE_DOCS - Sub-workspace docs pathSUMMARY - Object with counts (new, modified, identical, workspace_only)FILES - Array of file objects with path, status, details, [diff]Format output as table:
Diff: {SUB_WORKSPACE_NAME} <-> workspace
Direction: Sub-workspace -> Workspace
+--------------------------+-------------+---------------------+
| File | Status | Details |
+--------------------------+-------------+---------------------+
| rules/code/naming.md | Modified | +15 -3 lines |
| rules/code/style.md | New | Sub-workspace only |
| shared/conventions.md | Identical | No changes |
| old-feature/spec.md | Workspace | Workspace only |
+--------------------------+-------------+---------------------+
Summary: {modified} modified | {new} new | {identical} identical | {workspace_only} workspace-only
Status meanings:
New - File exists in sub-workspace but not in workspaceModified - File exists in both but content differsIdentical - File exists in both with same contentWorkspace - File exists in workspace but not in sub-workspaceIf --detailed flag was specified, show diff content for modified files:
### Modified: rules/code/naming.md
```diff
--- workspace/rules/code/naming.md
+++ sub-workspace/rules/code/naming.md
@@ -10,3 +10,5 @@
- Test framework: vitest
+- Coverage target: 85%
+- Mock strategy: vi.mock()
Based on diff results, suggest next steps:
If there are changes to sync:
Next steps:
- `/tdk-config-sync --from-sub-workspace {NAME}` to copy sub-workspace docs to workspace
- `/tdk-config-sync --to-sub-workspace {NAME}` to copy workspace docs to sub-workspace
If workspace has files not in sub-workspace:
Note: Workspace has {count} files not present in sub-workspace.
These files will NOT be deleted during sync (safety).
If no changes:
Docs are in sync. No action needed.
docs:index - Generate document manager indexdocs:sync - Sync docs between workspace and sub-workspacenpx claudepluginhub vinhltt/tdk --plugin tdk-coreCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.