api
免费RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.
中文简介正在准备中。当前显示原文说明。
Session lifecycle management. Parent skill for session-related skills: learning (pattern extraction) and compact (context compression).
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
本技能提供 Claude Code 会话的生命周期管理策略,整合持续学习和上下文压缩。
会话开始 ──→ 工作阶段 ──→ 检查点 ──→ 会话结束
│ │ │ │
│ │ │ └─→ 提取模式 (/learning)
│ │ └─→ 上下文压缩 (/cc-best:compact-context)
│ └─→ 持续工作
└─→ 加载上次上下文
| 场景 | 推荐策略 | 子技能 |
|---|---|---|
| 上下文接近限制 | 策略性压缩 | /cc-best:compact-context |
| 完成重要任务节点 | 主动压缩 | /cc-best:compact-context |
| 会话结束时 | 提取可复用模式 | /learning |
| 解决了复杂问题 | 记录解决方案 | /learning |
| 发现项目特定知识 | 记录到知识库 | /learning |
适用场景:
使用方式:/learning 或参阅 skills/learning/SKILL.md
适用场景:
使用方式:/cc-best:compact-context 或参阅 skills/compact/SKILL.md
为会话设置语义化标签,便于快速查找和恢复。
在会话元数据中记录语义化标签:
{
"name": "feature-login-page",
"sessionPath": "memory-bank/progress.md",
"tags": ["feature", "frontend"],
"created": "2026-02-24 14:30:00",
"summary": "实现登录页面 - PM/Lead/Dev 已完成"
}
存储位置: ~/.claude/session-aliases.json(全局,跨项目共享)
标签分类系统:
| 前缀 | 含义 | 示例 |
|---|---|---|
feature-* | 功能开发 | feature-login-page |
bugfix-* | 缺陷修复 | bugfix-auth-timeout |
refactor-* | 重构改进 | refactor-api-layer |
explore-* | 技术探索 | explore-new-framework |
当使用 /cc-best:catchup 恢复时:
/cc-best:checkpoint 手动触发/cc-best:catchup --alias <name> 快速恢复指定会话| 指标 | 健康状态 | 行动 |
|---|---|---|
| 上下文使用 | < 70% | 继续工作 |
| 上下文使用 | 70-90% | 考虑压缩 |
| 上下文使用 | > 90% | 立即压缩 |
| 有价值的发现 | 有 | 记录到知识库 |
记住:良好的会话管理让每次对话都能高效利用上下文,同时积累可复用的知识。
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.
中文简介正在准备中。当前显示原文说明。
Architecture design skill: ADR records, system design checklists, scalability assessment, architecture patterns. Use for complex system design and architecture decisions.
中文简介正在准备中。当前显示原文说明。
Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or microservices.
中文简介正在准备中。当前显示原文说明。
Strategic compaction skill: suggests context compression at logical breakpoints. Use to suggest compaction at logical intervals during development sessions.
中文简介正在准备中。当前显示原文说明。
Database design, query optimization, migrations, and indexing. Use when designing schemas, writing queries, or managing migrations.
中文简介正在准备中。当前显示原文说明。
Systematic debugging methods, log analysis, and performance diagnostics. Use when debugging issues, analyzing errors, or troubleshooting incidents.
中文简介正在准备中。当前显示原文说明。