artifact-lifecycle
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseArtifact 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.mdWhen 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.mdPhases
阶段
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:
- for skills
Skill({ skill: "skill-creator" }) - for agents
Skill({ skill: "agent-creator" }) - for hooks
Skill({ skill: "hook-creator" }) - for workflows
Skill({ skill: "workflow-creator" })
执行已确定的操作。
Agent: developer + 对应创建类Skill
工具:
- 用于创建Skill
Skill({ skill: "skill-creator" }) - 用于创建Agent
Skill({ skill: "agent-creator" }) - 用于创建Hook
Skill({ skill: "hook-creator" }) - 用于创建工作流
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
配置
| Parameter | Values | Default |
|---|---|---|
| artifact_type | skill, agent, hook, workflow, template, schema | auto-detect |
| operation | create, update, deprecate, integrate | auto-detect |
| version_bump | major, minor, patch | minor |
| 参数 | 取值范围 | 默认值 |
|---|---|---|
| artifact_type | skill, agent, hook, workflow, template, schema | auto-detect |
| operation | create, update, deprecate, integrate | auto-detect |
| version_bump | major, minor, patch | minor |
Memory Protocol
内存协议
- Read before starting
.claude/context/memory/learnings.md - Record decisions to
.claude/context/memory/decisions.md - Record issues to
.claude/context/memory/issues.md
- 启动前读取
.claude/context/memory/learnings.md - 将决策记录到
.claude/context/memory/decisions.md - 将问题记录到
.claude/context/memory/issues.md
Related Skills
相关Skill
- - Direct skill creation
skill-creator - - Direct agent creation
agent-creator - - Direct workflow creation
workflow-creator - - External artifact integration
codebase-integration
- - 直接创建Skill
skill-creator - - 直接创建Agent
agent-creator - - 直接创建工作流
workflow-creator - - 外部工件集成
codebase-integration
Related Workflows
相关工作流
- - Full lifecycle workflow
.claude/workflows/core/skill-lifecycle.md - - External artifact integration
.claude/workflows/core/external-integration.md - - Router decision flow
.claude/workflows/core/router-decision.md
- - 完整生命周期工作流
.claude/workflows/core/skill-lifecycle.md - - 外部工件集成
.claude/workflows/core/external-integration.md - - 路由决策流程
.claude/workflows/core/router-decision.md