track-estimate
Manually log a time estimate.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 95
- Forks
- 18
01 前言 Front Matter
- name
- track-estimate
- description
- Manually log a time estimate.
- allowed-tools
- Bash, Read, Edit
02 资源文件 1
- 参考文档agents/openai.yaml120 B
03 SKILL.md 正文
/track-estimate - Manual Estimate Capture
Append a time estimate to workspace/estimate-log/log.jsonl. Use this when:
- The auto-capture hook missed something (vague phrasing, deeply nested in a code block, etc.)
- You want to attach a structured
taskdescription to a freshly-captured estimate - The estimate is being made conversationally before any assistant message has logged it
Input: $ARGUMENTS
The argument should be a free-form phrase containing both a task description and a duration. Examples:
"port resolve-conflicts skill to hq-core-staging" "1-2h""npm release of hq-cloud@5.7.1, including verification" "30m""HQ Desktop App Tauri build + sign + notarize" "10-30m"
Steps
-
Parse arguments
- Extract the duration token (
30m,1-2h,2 days,~5min, etc.) - Treat everything else as the task description
- Fall back to interactive prompts if either is missing
- Extract the duration token (
-
Normalize duration Use the same logic as
parse-estimates.pl:m/min/minutes→ minutes (1×)h/hr/hours→ minutes (60×)d/day/days→ minutes (480× — 8-hour workday)s/sec→ minutes (1/60×)- Ranges like
1-2h:min_minutes=60, max_minutes=120, expected_minutes=90
-
Categorize Run the same keyword classifier from
parse-estimates.plagainst the task description. If unclear, ask the user to confirm or pick from:release,pr,build,deploy,tauri,infra,script,refactor,docs,debug,cli,unknown. -
Generate ID
est_<sha1(session_id + iso_ts + task)[0..10]>— same format as auto-capture. -
Append entry to log
cat >> workspace/estimate-log/log.jsonl <<EOF {"id":"est_...","timestamp":"...","session_id":"manual","message_uuid":"manual-<short>","offset":0,"raw":"<duration token>","kind":"estimate","min_minutes":...,"max_minutes":...,"expected_minutes":...,"category":"...","surrounding":"<task>","status":"pending","task":"<task>"} EOFField order should match canonical (alphabetical) so it sorts identically to auto-capture entries.
-
Report
Tracked: <task> ID: est_... Estimate: <human-readable> (<expected_minutes> min, range <min>-<max>) Category: <category> When done, run: /finish-estimate <id> <actual-duration>
Notes
- This command is the escape hatch for the auto-capture hook. Most estimates should land via the Stop hook automatically; this is for the cases the hook misses.
- The
session_idis set to"manual"to distinguish manual entries from auto-captured ones in/calibration-report. - If the user provides only a duration with no task, prompt for the task — never log an estimate without context.
See also
/finish-estimate— close it with the actual time/calibration-report— see estimate accuracy
04 同仓库更多 Skills
job
Deprecated alias for /schedule — Outpost recurring agent jobs. Prefer /schedule.
import-claude
Deprecated alias for /import-context — bootstrap HQ from your prior AI footprint (Claude Code, Codex, Grok, claude.ai history plus on-disk artifacts).
hq-whoami
Show current HQ Cognito identity and session expiry.
hq-share
Share HQ vault paths through single-use links or direct ACL grants.
hq-secrets
Use HQ CLI secrets safely through env injection or one-off exec.
hq-logout
Sign out of HQ Cognito and clear local tokens.