tapd-iteration-runner

Orchestrates batch development of all TAPD iteration stories through a four-stage pipeline.

840|261|Updated Apr 18, 2019
One-click install
npx skills add https://github.com/TencentBlueKing/bk-bcs --skill tapd-iteration-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tapd-iteration-runner
Source: https://github.com/TencentBlueKing/bk-bcs/tree/main/.agents/skills/tapd-iteration-runner
Command: npx skills add https://github.com/TencentBlueKing/bk-bcs --skill tapd-iteration-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developing an entire TAPD iteration manually means repeatedly switching between requirement tracking, branch management, dependency ordering, and per-story implementation. This Skill automates the whole iteration-level coordination so every story in an iteration is implemented in the correct order with full state tracking and recovery.

Core Features & Use Cases

  • Four-Stage Orchestration: Runs environment initialization, requirement dependency analysis (DAG + topological sort), a per-story scheduling loop, and a final iteration report with changelog and efficiency metrics.
  • State Management & Recovery: Persists iteration progress in iteration-state.json, supports resume after interruption, and handles bugfix mode for released versions.
  • Pipeline Delegation: Inline-executes the tapd-story-pipeline skill for each story, reading meta.yaml and questions.md to decide retry, approve, reject, or answer actions with the user.
  • Use Case: Tell the assistant to develop TAPD iteration #1001234; it creates the version branch, pulls all stories via TAPD MCP, orders them by dependency, implements each one, and produces a changelog plus cost/efficiency summary.

Quick Start

Ask the assistant to develop all requirements in TAPD iteration #1001234 with workspace_id 20000001.

Frequently Asked Questions about tapd-iteration-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch develop all stories in a TAPD iteration?

Provide the iteration ID and workspace_id, and the runner executes four stages: environment init, dependency analysis, a per-story implementation loop, and a final report. Each story is implemented by the embedded tapd-story-pipeline until its phase reaches committed.

How does TAPD iteration dependency analysis work?

The analysis stage pulls all stories via TAPD MCP stories_get, identifies parent-child relations from parent_id, extracts explicit dependencies from each story's dependency section, and detects technical and business dependencies. It then builds a DAG and topologically sorts stories into an execution sequence.

Can I resume an interrupted TAPD iteration development?

Yes. The init stage detects an existing iteration-state.json and runs a recovery flow that shows progress, backfills derived phase and stats caches from each story's meta.yaml, checks consistency, and re-enters the scheduling loop at the first unfinished story.

What is the difference between tapd-iteration-runner and tapd-story-pipeline?

The runner handles iteration-level orchestration across many stories, while tapd-story-pipeline implements a single story. Single-story requests should trigger the pipeline directly; the runner only activates for iteration-level batch work.

Does the iteration runner support Windows PowerShell?

Yes. All git and file operations include both Bash and PowerShell variants. On Windows, set the console output encoding to UTF8 before the first run to avoid garbled characters.

What reports are generated after a TAPD iteration completes?

The report stage generates a changelog.md from each story's commit.md and a summary.md with code change statistics plus three-layer cost metrics covering iteration totals, per-story breakdowns, and per-stage credit and token consumption.