Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问clear审计通过

adr-code-traceabilityADR 代码可追溯性

Agent Skill

adr-code-traceability 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,067

周安装

87

GitHub Stars

38

下载量

724
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:adr-code-traceability(ADR 代码可追溯性)
来源仓库:https://github.com/terrylica/cc-skills
仓库路径:skills/adr-code-traceability
安装命令:
npx skills add https://github.com/terrylica/cc-skills --skill adr-code-traceability
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill adr-code-traceability

简介

用于将架构决策记录(ADR)与代码关联,增强技术决策的可追溯性。

  • 提供语言特定的引用模式与文件放置指南,支持跨模块决策追踪。
  • 可在开发阶段自动添加决策上下文,提升代码可维护性与审查效率。
  • 安装命令:npx skills add https://github.com/terrylica/cc-skills --skill adr-code-traceability。
  • 使用前请确认 ADR 编号与文件路径映射关系,避免引用错误或断链。

SKILL.md

ADR Code Traceability

Add Architecture Decision Record references to code for decision traceability. Provides language-specific patterns and placement guidelines.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

  • Creating new files as part of an ADR implementation
  • Documenting non-obvious implementation choices
  • User mentions "ADR traceability", "code reference", "document decision"
  • Adding decision context to code during /itp:go Phase 1

Quick Reference

Reference Format

ADR: {adr-id}

Path Derivation: ADR: 2025-12-01-my-feature/docs/adr/2025-12-01-my-feature.md

Language Patterns (Summary)

LanguageNew File HeaderInline Comment
Python"""...\n\nADR: {adr-id}\n"""# ADR: {adr-id} - reason
TypeScript/**... \n * @see ADR: {adr-id} */// ADR: {adr-id} - reason
Rust//!...\n//! ADR: {adr-id}// ADR: {adr-id} - reason
Go// Package... \n// ADR: {adr-id}// ADR: {adr-id} - reason

See Language Patterns for complete examples.


Placement Decision Tree

Is this a NEW file created by the ADR?
├── Yes → Add reference in file header
└── No → Is the change non-obvious?
    ├── Yes → Add inline comment with reason
    └── No → Skip ADR reference

See Placement Guidelines for detailed guidance.


Examples

New File (Python)

"""
Redis cache adapter for session management.

ADR: 2025-12-01-redis-session-cache
"""

class RedisSessionCache:
    ...

Inline Comment (TypeScript)

// ADR: 2025-12-01-rate-limiting - Using token bucket over sliding window
// for better burst handling in our use case
const rateLimiter = new TokenBucketLimiter({ rate: 100, burst: 20 });

Do NOT Add References For

  • Every line touched (only where traceability adds value)
  • Trivial changes (formatting, typo fixes)
  • Standard patterns (well-known idioms)
  • Test files (unless test approach is an ADR decision)

Reference Documentation


Troubleshooting

IssueCauseSolution
ADR not foundWrong path formatUse relative path from repo root
Reference not showingComment syntax wrongCheck language-specific comment format
Too many referencesOver-documentingOnly add where traceability adds value
Outdated ADR linkADR was renamedUpdate path to match current ADR filename
Hook reminder annoyingNo ADR for this changeAdd inline ADR comment or create new ADR

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.39%
按下载量换算220

OpenCode

23.85%
按下载量换算173

Antigravity

17.01%
按下载量换算123

Gemini CLI

15.04%
按下载量换算109

windsurf

8.72%
按下载量换算63

trae

3.52%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills