artifact-lifecycle

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Artifact Lifecycle Skill

Artifact Lifecycle Skill

Convenience wrapper for the unified artifact lifecycle workflow.
针对统一工件生命周期工作流的便捷封装工具。

Overview

概述

This skill provides a simplified interface to the comprehensive artifact lifecycle management workflow at
.claude/workflows/core/skill-lifecycle.md
.
本Skill为
.claude/workflows/core/skill-lifecycle.md
中全面的工件生命周期管理工作流提供了简化接口。

When to Use

使用场景

Use this skill when you need to:
  • Create a new artifact (skill, agent, hook, workflow, template, schema)
  • Update an existing artifact
  • Deprecate an artifact with migration guidance
  • Check if an artifact already exists
在以下场景中使用本Skill:
  • 创建新工件(Skill、Agent、Hook、工作流、模板、模式)
  • 更新现有工件
  • 为工件添加迁移指引并标记为弃用
  • 检查工件是否已存在

Quick Start

快速开始

javascript
// Invoke this skill
Skill({ skill: 'artifact-lifecycle' });
javascript
// 调用本Skill
Skill({ skill: 'artifact-lifecycle' });

Workflow Reference

工作流参考

Full Workflow:
.claude/workflows/core/skill-lifecycle.md
完整工作流:
.claude/workflows/core/skill-lifecycle.md

Phases

阶段

Phase 1: Discovery

阶段1:发现

Check if artifact exists, compare versions.
Agent: architect Output: Discovery report with recommendations
检查工件是否存在,对比版本。
Agent: architect 输出: 包含建议的发现报告

Phase 2: Decision

阶段2:决策

Determine action: CREATE, UPDATE, or DEPRECATE.
Agent: planner Output: Action plan with tasks
确定操作类型:CREATE(创建)、UPDATE(更新)或DEPRECATE(弃用)。
Agent: planner 输出: 包含任务的行动计划

Phase 3: Action

阶段3:执行

Execute the determined action.
Agent: developer + appropriate creator skill Tools:
  • Skill({ skill: "skill-creator" })
    for skills
  • Skill({ skill: "agent-creator" })
    for agents
  • Skill({ skill: "hook-creator" })
    for hooks
  • Skill({ skill: "workflow-creator" })
    for workflows
执行已确定的操作。
Agent: developer + 对应创建类Skill 工具:
  • Skill({ skill: "skill-creator" })
    用于创建Skill
  • Skill({ skill: "agent-creator" })
    用于创建Agent
  • Skill({ skill: "hook-creator" })
    用于创建Hook
  • Skill({ skill: "workflow-creator" })
    用于创建工作流

Phase 4: Integration

阶段4:集成

Update registries, catalogs, and CLAUDE.md.
Agent: developer Updates:
  • creator-registry.json
  • skill-catalog.md (for skills)
  • CLAUDE.md Section 3 (for agents) or Section 8.5/8.6 (for skills/workflows)
更新注册表、目录和CLAUDE.md。
Agent: developer 更新内容:
  • creator-registry.json
  • skill-catalog.md(针对Skill)
  • CLAUDE.md的第3部分(针对Agent)或第8.5/8.6部分(针对Skill/工作流)

Phase 5: Validation

阶段5:验证

Test integration and verify references.
Agent: qa Checks:
  • Artifact invocable
  • References valid
  • No broken cross-references
测试集成并验证引用。
Agent: qa 检查项:
  • 工件可被调用
  • 引用有效
  • 无失效的交叉引用

Usage Examples

使用示例

Create New Skill

创建新Skill

User: "Create a skill for Kubernetes deployment"

Router spawns with:
Skill({ skill: "artifact-lifecycle" })

Workflow determines: CREATE mode
Invokes: skill-creator
Updates: registry, catalog, CLAUDE.md
Validates: skill invocable
用户:"创建一个用于Kubernetes部署的Skill"

路由启动:
Skill({ skill: "artifact-lifecycle" })

工作流判定:CREATE模式
调用:skill-creator
更新:注册表、目录、CLAUDE.md
验证:Skill可被调用

Update Existing Agent

更新现有Agent

User: "Update the devops agent to support Terraform Cloud"

Router spawns with:
Skill({ skill: "artifact-lifecycle" })

Workflow determines: UPDATE mode
Version: 1.0.0 → 1.1.0
Updates: agent file, CHANGELOG
Validates: agent referenced correctly
用户:"更新DevOps Agent以支持Terraform Cloud"

路由启动:
Skill({ skill: "artifact-lifecycle" })

工作流判定:UPDATE模式
版本:1.0.0 → 1.1.0
更新:Agent文件、CHANGELOG
验证:Agent引用正确

Deprecate Workflow

弃用工作流

User: "Deprecate the old deployment workflow"

Router spawns with:
Skill({ skill: "artifact-lifecycle" })

Workflow determines: DEPRECATE mode
Adds: deprecation notice, migration guide
Updates: CLAUDE.md with replacement reference
Validates: no broken references
用户:"弃用旧的部署工作流"

路由启动:
Skill({ skill: "artifact-lifecycle" })

工作流判定:DEPRECATE模式
添加:弃用通知、迁移指南
更新:CLAUDE.md中的替代引用
验证:无失效引用

Configuration

配置

ParameterValuesDefault
artifact_typeskill, agent, hook, workflow, template, schemaauto-detect
operationcreate, update, deprecate, integrateauto-detect
version_bumpmajor, minor, patchminor
参数取值范围默认值
artifact_typeskill, agent, hook, workflow, template, schemaauto-detect
operationcreate, update, deprecate, integrateauto-detect
version_bumpmajor, minor, patchminor

Memory Protocol

内存协议

  1. Read
    .claude/context/memory/learnings.md
    before starting
  2. Record decisions to
    .claude/context/memory/decisions.md
  3. Record issues to
    .claude/context/memory/issues.md
  1. 启动前读取
    .claude/context/memory/learnings.md
  2. 将决策记录到
    .claude/context/memory/decisions.md
  3. 将问题记录到
    .claude/context/memory/issues.md

Related Skills

相关Skill

  • skill-creator
    - Direct skill creation
  • agent-creator
    - Direct agent creation
  • workflow-creator
    - Direct workflow creation
  • codebase-integration
    - External artifact integration
  • skill-creator
    - 直接创建Skill
  • agent-creator
    - 直接创建Agent
  • workflow-creator
    - 直接创建工作流
  • codebase-integration
    - 外部工件集成

Related Workflows

相关工作流

  • .claude/workflows/core/skill-lifecycle.md
    - Full lifecycle workflow
  • .claude/workflows/core/external-integration.md
    - External artifact integration
  • .claude/workflows/core/router-decision.md
    - Router decision flow
  • .claude/workflows/core/skill-lifecycle.md
    - 完整生命周期工作流
  • .claude/workflows/core/external-integration.md
    - 外部工件集成
  • .claude/workflows/core/router-decision.md
    - 路由决策流程