AgentSkillsCN

impl-strategy

当您需要将基线与架构文档转化为可执行的实施策略时,可选用此技能:分阶段实施计划、依赖关系 DAG(TASK_DAG.json)、任务目录,以及可选的工作流树/并行化方案。触发条件包括:“实施策略”、“实施计划”、“交付路线图”、“工作流计划”、“任务 DAG”、“依赖关系图”、“阶段计划”、“里程碑”、“工作流树计划”、“impl 准入”、“validate_task_graph.py”。该技能要求基线准入通过,并且必须具备文档与实施相关资料;若缺失必要策略输入,则直接判定为失败。

SKILL.md
--- frontmatter
name: impl-strategy
version: "1.0"
description: >
  Use when you need to turn baseline + architecture docs into an executable implementation strategy: phased plan, dependency DAG (TASK_DAG.json), task catalog, and optional worktree/parallelization plan.
  Triggers: "implementation strategy", "implementation plan", "delivery roadmap", "workstream plan", "task DAG", "dependency graph", "phase plan", "milestones", "worktree plan", "impl gate", "validate_task_graph.py".
  Requires baseline gate PASS and docs/implementation/; fails closed if required policy inputs are missing.

Impl-Strategy Skill

Purpose

Provides implementation strategy and task graph validation for system development. This skill depends on both baseline gate passing and architecture documentation being in place.

References (progressive disclosure)

  • references/executive-summary.md
  • references/IMPL_STRATEGY_PHASES.md

Core Functionality

  • Implementation Strategy: Generate and validate implementation plans and task graphs
  • Task Graph Validation: Ensure implementation dependencies are properly defined
  • Strategy Documentation: Create detailed implementation roadmaps
  • Baseline Dependency: Blocked until arch-baseline gate passes

Key Components

Scripts

  • validate_task_graph.py - Main validation script with baseline gate dependency

Resources

  • resources/templates/ - Templates for implementation strategy documents
  • resources/schemas/ - JSON schemas for task graph validation
  • resources/policy/ - Implementation governance policies

Required Documents

Creates and validates implementation artifacts in:

  • docs/implementation/ - Implementation strategy and task graphs
  • docs/baseline/ - Cross-references baseline artifacts
  • docs/architecture/ - Links to architecture documentation

Usage

bash
# Validate implementation strategy (includes baseline gate check)
python custom_skills/impl-strategy/scripts/validate_task_graph.py

Baseline Gate Dependency

This skill requires baseline gate to pass before execution:

  • Calls tools/run_baseline_gate.sh or direct baseline validator
  • If baseline fails: prints "BASELINE GATE FAILED" and exits with code 1
  • Only proceeds with implementation work after baseline validation succeeds

Dependencies

  • Python standard library only
  • Requires baseline gate to pass
  • Expects architecture documentation to exist
  • No network access required

Governance Role

This skill enforces implementation-first governance:

  • Implementation strategy must be documented before coding
  • Task graphs ensure dependency awareness and proper sequencing
  • Blocked until baseline architecture foundation is established

Exit Codes

  • 0 - All validations passed
  • 1 - Baseline gate failed or implementation strategy validation failed