AgentSkillsCN

new-ability-high

搭建一项高层次能力(以工作流程为支撑)。关键词:能力、高层次、工作流程、脚手架搭建。

SKILL.md
--- frontmatter
name: new-ability-high
description: "Scaffold a high-level ability (workflow-backed). Keywords: ability, high-level, workflow, scaffolding."

Scaffold: New High-Level Ability

This document is an entrypoint for high-level ability scaffolding. The step-by-step flow is in /.system/skills/ssot/repo/scaffolding/new-ability-high/SKILL.md.


1. Purpose & Scope

Purpose: Register a new high-level ability in the ability registry and update relevant ABILITY.md index files.

Scope:

  • Creates ability registration in /.system/registry/high-level/
  • Regenerates ABILITY.md indexes for specified entrypoints
  • Validates implementation references

Out of scope:

  • Implementing the actual workflow/agent logic
  • Low-level atomic operations
  • Modifying flow graphs

2. Inputs & Preconditions

Required Inputs

ParameterTypeDescription
idstringUnique ability identifier (e.g., code-review.architecture-reviewer)
summarystringOne-line description of what this ability does
typeenumAbility type: workflow, agent
entrypointsarrayABILITY catalog roots where ability appears

Conditional Inputs (based on type)

ParameterConditionDescription
workflow_filetype=workflowPath to workflow definition file
stepstype=workflowInline step definitions (alternative to workflow_file)
agent_entrytype=agentAgent entry point reference

Optional Inputs

ParameterTypeDefaultDescription
parametersobject{}JSON Schema for input parameters
tagsarray[]Classification tags
hooksobject{}Pre/post hook bindings

Preconditions

  1. Phase 4 registry tooling is available (scripts/devops/registry/abilities.py)
  2. id does not already exist in ability registries
  3. Specified entrypoints have valid ABILITY.md files with marker blocks
  4. For workflows: workflow_file exists or steps are valid
  5. For agents: agent_entry reference is valid

3. Step-by-Step Flow (AI + Human)

See /.system/skills/ssot/repo/scaffolding/new-ability-high/SKILL.md.


4. Tools & Scripts

ToolPurpose
scripts/devops/scaffold/new_ability_high.pyOrchestrator script
scripts/devops/registry/abilities.pyRegistry validation and index regeneration
scripts/devops/registry/hooks.pyHook binding validation

5. Outputs & Side Effects

Files Created/Modified

code
/.system/registry/high-level/<id>.yaml    # New registry entry
<entrypoint>/ABILITY.md                   # Index block regenerated

Registry Entry Structure (Workflow)

yaml
id: code-review.architecture-reviewer
summary: Review code changes for architecture compliance
type: workflow
entrypoints:
  - /modules/integration
implementation:
  workflow_file: /.system/skills/ssot/repo/workflow-library/code_review/workflow/code_architecture_reviewer.md
parameters:
  type: object
  properties:
    pr_url:
      type: string
      description: Pull request URL to review
  required:
    - pr_url
hooks:
  pre_call:
    - code_review_gate

Registry Entry Structure (Agent)

yaml
id: planning.execution-planner
summary: Generate execution plans for complex tasks
type: agent
entrypoints:
  - /modules/integration
implementation:
  agent_entry: /.system/skills/ssot/repo/execution-plans/execution-plan-authoring/SKILL.md

6. Safety & Rollback

Safety Measures

  • --dry-run always available for preview
  • Human approval required before execution
  • Schema validation on registry entry
  • Consistency checks via abilities.py --check
  • Hook binding validation

Rollback Procedure

If registration fails or needs reverting:

  1. Delete the registry entry:
    bash
    rm /.system/registry/high-level/<id>.yaml
    
  2. Regenerate ABILITY.md indexes:
    bash
    python scripts/devops/registry/abilities.py --scope integration --regenerate
    

7. Related Documents

  • /.system/skills/ssot/repo/architecture-core-mechanisms/ability-workflow/SKILL.md - Ability development workflow
  • /.system/registry/schemas/ability_high.schema.yaml - High-level ability schema
  • /.system/registry/schemas/V1_CORE.md - V1-core required fields
  • /.system/skills/ssot/repo/scaffolding/new-ability-low/SKILL.md - Low-level ability scaffolding