feat(skill): add builtin task skill for CLI-driven lifecycle/debug progress tracking#131
Merged
Merged
Conversation
codeaholicguy
added a commit
that referenced
this pull request
Jul 1, 2026
… docs Analysis-first simplification of PR #131. No semantics or contract changes. - Remove src/ActorResolver.ts (+ exports): 0 internal callers, 0 tests, 0 consumers. It duplicated the TaskService's env-resolution and was trivially replaceable by an Actor literal. Cheapest to remove pre-merge (v0.1.0, no consumers). README/design/implementation/planning updated; callers pass an explicit Actor directly. - TaskTracer.ts: fix ValidationInput.passed docstring ("defaults to true" was false — field is required, no default). - integration.task-manager.test.ts: drop tautology "integration guard" test (asserted `mod === null || mod !== null`, always true). vitest reports the skipped suite cleanly without it. Kept (considered, justified): contract.ts port (decouples from optional peer; ITaskService is task-tracer's own), InMemoryTaskService (fast hermetic no-IO unit tests + public export). Validation (fresh): tsc --noEmit exit 0; eslint 0 errors; build exit 0. Standalone (task-manager absent): 38 passed | 5 skipped, exit 0. Real package resolvable: 43 passed (38 unit + 5 real integration), exit 0.
…e Task contract Introduce packages/task-tracer, a port-based (dependency inversion) tracing layer that maps dev-lifecycle / structured-debug progress semantics onto the LOCKED Task contract from feature-task-system. Task is the durable unit; tracing = task progress/events — no separate session-trace model, no task storage duplication. - contract.ts: async ITaskService port mirroring the locked TaskService API (Task/TaskEvent/Actor/TaskEventType) verbatim; consume-only. - TaskTracer: one method per semantic; each calls exactly one service mutator (phase/progress/nextStep/blocker/evidence/attribution/note/custom/close). - in-memory.ts: faithful InMemoryTaskService test double (not shipped storage). - status.ts: readStatus digest with staleness for orchestrator routing. - cli-argv.ts: pure argv builders for the upstream `ai-devkit task` CLI. - 38 vitest unit tests across contract conformance, mapping, status, argv. Validation (fresh): tsc --noEmit exit 0; vitest run 38 passed exit 0; swc + declarations build exit 0. Wires into @ai-devkit/task-manager (TaskService) with zero mapping changes when that package ships.
) Add a guarded integration test proving the real TaskService (shipped on feature-task-system) satisfies the tracing ITaskService port end-to-end, with NO mapping-logic divergence. Round-trips every semantic (ensureFeatureTask, phase/progress/nextStep/blocker/evidence/attribution/note/custom/close) through the real service + file-backed store and asserts the exact contract event-type strings + persisted snapshot. - tests/integration.task-manager.test.ts: skips cleanly (1 passed | 5 skipped) when @ai-devkit/task-manager is not resolvable, so standalone CI is green before #132 merges; auto-activates once #132 lands. Both states verified. - .eslintrc.json: add package lint config (mirrors @ai-devkit/agent-manager). - README/implementation/testing: mark wiring SHIPPED; note the real TaskService is assignable to the port via method bivariance (no port change needed). Validation (fresh, real package resolvable): tsc --noEmit exit 0; vitest run 44 passed (38 unit + 6 real integration) exit 0; build exit 0; eslint 0 errors. Standalone (package absent): 39 passed | 5 skipped, exit 0.
… docs Analysis-first simplification of PR #131. No semantics or contract changes. - Remove src/ActorResolver.ts (+ exports): 0 internal callers, 0 tests, 0 consumers. It duplicated the TaskService's env-resolution and was trivially replaceable by an Actor literal. Cheapest to remove pre-merge (v0.1.0, no consumers). README/design/implementation/planning updated; callers pass an explicit Actor directly. - TaskTracer.ts: fix ValidationInput.passed docstring ("defaults to true" was false — field is required, no default). - integration.task-manager.test.ts: drop tautology "integration guard" test (asserted `mod === null || mod !== null`, always true). vitest reports the skipped suite cleanly without it. Kept (considered, justified): contract.ts port (decouples from optional peer; ITaskService is task-tracer's own), InMemoryTaskService (fast hermetic no-IO unit tests + public export). Validation (fresh): tsc --noEmit exit 0; eslint 0 errors; build exit 0. Standalone (task-manager absent): 38 passed | 5 skipped, exit 0. Real package resolvable: 43 passed (38 unit + 5 real integration), exit 0.
…racing Replace the packages/task-tracer package + contract/port docs with a focused skill/docs integration — the same pattern as the memory skill. The integration surface is the ai-devkit task CLI; no TypeScript abstraction layer. - skills/task/SKILL.md: canonical ai-devkit task CLI calls for dev-lifecycle / verify / structured-debug progress (phase, progress, next, blocker add/resolve, evidence, artifact, attribution, show/list). Feature key resolves positionally as <id>, so agents do no task-id bookkeeping. Token-efficient, emit-at-checkpoints. - skills/task/agents/openai.yaml: skill interface metadata. - constants.ts: register 'task' in BUILTIN_SKILL_NAMES so init/skill add --built-in install it. - .ai-devkit.json: install the task skill in this project. Removes packages/task-tracer (port, contract, in-memory double, CLI argv builders, all tests) and the contract/port-oriented feature docs added earlier on this branch — they net to zero vs main. Two reviewer-provided canonical examples were adapted to match the SHIPPED CLI (verified by running each command against a throwaway store): - '--workflow' is not a CLI flag (unknown option); feature key + phase carry the workflow — omitted. - 'progress <id> "text"' silently drops the text (progress.text stays null); the skill uses '--text'. Validation (fresh): npm run lint exit 0 (5 projects); npm run test exit 0 (870 passed, 5 projects); SKILL.md frontmatter + openai.yaml parse via the CLI's own skill parsers (validateSkillName, extractSkillDescription).
86a5e8f to
954eec1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the built-in
taskskill so agents record dev-lifecycle / structured-debug progress directly through theai-devkit taskCLI — the same pattern as thememoryskill. No package or abstraction layer; the CLI is the entire integration surface.skills/task/SKILL.md— token-efficient, canonicalai-devkit taskcalls for lifecycle/debug progress (phase, progress, next step, blocker add/resolve, evidence, artifact, attribution, show/list). Agents emit at checkpoints, not streaming.skills/task/agents/openai.yaml— skill interface metadata.packages/cli/src/constants.ts— registerstaskinBUILTIN_SKILL_NAMESsoinit/skill add --built-ininstall it..ai-devkit.json— installs the task skill in this project.Design notes
<feature>positionally (resolves to the latest non-terminal task), so agents do no task-id bookkeeping.--workflowis not a CLI flag (unknown option); feature key + phase carry the workflow — omitted.progress <id> "text"silently drops the text; the skill uses--text.--workflow/ positional progress text are wanted, that is a change to thetaskCLI elsewhere, not this PR.Validation (fresh)
npm run lint→ exit 0 (5 projects)npm run test→ exit 0 (870 passed, 5 projects)SKILL.mdfrontmatter +openai.yamlparse via the CLI's own skill parsers (validateSkillName,extractSkillDescription)Not merging
Coordinating with the task-CLI feature. No code changes beyond skill registration/install.