Claude-skill-registry determine-task
Determine current task from state files and git context
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/determine-task" ~/.claude/skills/majiayu000-claude-skill-registry-determine-task && rm -rf "$T"
manifest:
skills/data/determine-task/SKILL.mdsource content
Task Determination
Analyze session state to determine what task to work on.
Execution
Run the task determiner agent:
./agents/task-determiner.sh
Analysis Performed
- Git History - Recent commits, uncommitted changes
- Progress File -
if present (harness pattern)claude-progress.txt - Branch Name - Extract hints from feature/, fix/, claude/* branches
- Tasks File -
for explicit task list.contextium/tasks.json
Task Selection Logic
- Find first task with status != "completed"
- Consider task dependencies
- Update
with current task.contextium/tasks.json
Output
=== RECOMMENDED TASK === Task: <task-id> Reason: <selection rationale> Prerequisites: <any setup needed> Scope: <files/modules in scope> ========================
Creating Tasks
If no tasks exist, create them:
# Edit tasks.json directly or use the task management skill cat > .contextium/tasks.json << 'EOF' { "version": "1.0.0", "tasks": [ { "id": "implement-feature-x", "description": "Implement feature X", "status": "pending", "priority": "high", "scope": ["src/features/x/*"] } ], "current": null, "history": [] } EOF