Work Summary Updater Skill
This skill covers routing decisions at the start of work and the index.json (single source of truth) update at completion.
Targets
work_index/index.json (single source of truth)
index.json (top-level summary)
Included Script
scripts/manage_work_index.py : ensure/upsert/query for work_index
Routing Steps
- Summarize the instruction and extract key keywords.
- Match against
keywords / query_patterns in index.json.
- Select the best-matching work folder.
- If multiple candidates or unclear, confirm via Slack.
- If none match, create
work/<short-name>.
Update Policy
- Keep
index.json aligned with the latest user request and repo status.
Update Steps
- Read the latest record in
work_index/work_index.db.
- Organize
summary / tags / query_patterns for the target folder.
- Update
index.json (single source of truth; reflect latest request/status).
Format Rules
index.json must include folder / summary / keywords / query_patterns / last_used.
Notes
index.json is the single source of truth.
- Keep JSON valid (no trailing commas).
Example
python scripts/manage_work_index.py ensure
python scripts/manage_work_index.py upsert \
--folder "work/20251231_slack_codex_bot" \
--summary "Slack-controlled Codex CLI bot repo" \
--keywords "slack,codex,bot,github" \
--query-patterns "slack.*codex,slack bot" \
--last-used "2025-12-31"