From tdk-utils
Load project configuration and resolve feature directory from validated TASK_ID. Called by: tdk-analyze, tdk-checklist, tdk-clarify, tdk-implement, tdk-plan, tdk-specify (supports --fast mode). NOT user-invocable.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tdk-utils:tdk-load-project-contextThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Receive a validated `TASK_ID` from the calling skill (output of `tdk-validate-task-id`). Load project configuration and resolve the feature directory.
Receive a validated TASK_ID from the calling skill (output of tdk-validate-task-id). Load project configuration and resolve the feature directory.
Execute from repo root:
PROJECT_DIR="${CLAUDE_PROJECT_DIR:-${GITHUB_WORKSPACE:-$(git rev-parse --show-toplevel 2>/dev/null)}}"
if [ -z "$PROJECT_DIR" ]; then
echo "Cannot resolve project root. Run from a git workspace or set CLAUDE_PROJECT_DIR/GITHUB_WORKSPACE."
exit 1
fi
(cd "$PROJECT_DIR/.specify/scripts/ts" && bun src/commands/detect-config.ts)
Parse JSON output into PROJECT_CONTEXT.
If PROJECT_CONTEXT.configFound is true:
PROJECT_NAME, PROJECT_PATH, METADATA for context.RULES_FILES array.INLINE_RULES to generation guidelines.METADATA (language, framework) for tech-specific guidance.If PROJECT_CONTEXT.configFound is false:
If a rules file is not found:
Rule file not found: {path} — continue without it.Skip this step if
require_prefix_validationisfalse.
TASK_ID (part before the number).PROJECT_CONTEXT.featureEnv.prefixList (from .specify.json).Skip this step if
require_feature_dirisfalse.
PROJECT_CONTEXT.featureEnv.defaultFolder (fallback: feature)..specify/{folder}/{task-id}//tdk-specify first.Return these values to the calling skill:
PROJECT_CONTEXT — full config object (PROJECT_NAME, METADATA, RULES_FILES, INLINE_RULES, FEATURE_ENV, TEST_CONFIG)FEATURE_DIR — resolved absolute path to the feature directory (when require_feature_dir is true)After loading, the calling skill has access to:
{PROJECT_NAME}{metadata.language}{metadata.framework}RULES_FILES and INLINE_RULESnpx claudepluginhub vinhltt/tdk --plugin tdk-utilsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.