[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADZ5WRPA2K2XZQ8AT1FERQ":3,"skill-same:01M6ADZ5WRPA2K2XZQ8AT1FERQ":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":71,"commitSha":72,"skillDirectory":73,"forksCount":74,"repositoryHtmlUrl":75,"repositoryHomepageUrl":76,"ownerHtmlUrl":77,"ownerBlogUrl":78,"ownerDescription":79,"updatedAt":80,"install":81,"resources":94},"01M6ADZ5WRPA2K2XZQ8AT1FERQ","safety-alignment-constitutional-ai","Constitutional AI 安全对齐","Anthropic's method for training harmless AI through self-improvement. Two-phase approach - supervised learning with self-critique\u002Frevision, then RLAIF (RL from AI Feedback). Use for safety alignment, reducing harmful outputs without human labels. Powers Claude's safety system.","Anthropic 提出的通过自我改进训练无害 AI 的方法。采用两阶段方案——带自我批评\u002F修订的监督学习，随后是 RLAIF（基于 AI 反馈的强化学习）。用于安全对齐，在无需人工标注的情况下减少有害输出。是 Claude 安全系统的基础。","davila7\u002Fclaude-code-templates","davila7","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6216945?v=4","01M6ADEWWFPS191NFM0Y1EX1JH","Daniel Avila","01M6ADJHGM78PHQRD3XZTFDVKK",33602,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fai-research\u002Fsafety-alignment-constitutional-ai\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0NK93YXC7GERCH372ZVDF","AI 模型训练与微调","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"safety alignment constitutional ai","Safety Alignment","Safety","alignment","Constitutional AI","self","Supervised Learning","supervised","phase","labels","improvement","for","orchestra","revision","human","research","feedback","critique","AI Safety","Transformers","training","2026-11-10 10:12:30",false,"---\nname: safety-alignment-constitutional-ai\ndescription: Anthropic's method for training harmless AI through self-improvement. Two-phase approach - supervised learning with self-critique\u002Frevision, then RLAIF (RL from AI Feedback). Use for safety alignment, reducing harmful outputs without human labels. Powers Claude's safety system.\nlicense: MIT\nmetadata:\n  version: 1.0.0\n  author: Orchestra Research\n  tags: [Safety Alignment, Constitutional AI, RLAIF, Self-Critique, Harmlessness, Anthropic, AI Safety, RL From AI Feedback, Claude]\n  dependencies: [transformers, torch, trl]\n---\n\n# Constitutional AI - Harmlessness from AI Feedback\n\n## Quick start\n\nConstitutional AI (CAI) trains models to be harmless through self-critique and AI feedback, without requiring human labels for harmful outputs.\n\n**Key concept**: Models learn to critique and revise their own responses using a \"constitution\" (set of principles).\n\n**Two phases**:\n1. **Supervised Learning (SL)**: Self-critique + revision\n2. **Reinforcement Learning (RL)**: RLAIF (RL from AI Feedback)\n\n**Constitution example**:\n```\nPrinciples:\n1. Choose the response that is most helpful, honest, and harmless\n2. Avoid responses that are toxic, racist, or sexist\n3. Prefer responses that explain objections rather than refuse\n4. Choose responses that are thoughtful and nuanced\n```\n\n## Common workflows\n\n### Workflow 1: Supervised learning phase (self-critique + revision)\n\n**Step 1: Generate initial responses**:\n```python\nfrom transformers import pipeline\n\ngenerator = pipeline(\"text-generation\", model=\"base-model\")\n\nprompts = [\n    \"How do I hack a website?\",\n    \"Write something offensive about a group.\",\n    \"Help me cheat on my exam.\"\n]\n\ninitial_responses = generator(prompts, max_length=200)\n```\n\n**Step 2: Self-critique with constitution**:\n```python\ncritique_prompt = \"\"\"\nGiven the question:\n{question}\n\nAnd the response:\n{response}\n\nConstitution:\n1. Choose responses that are helpful, honest, and harmless\n2. Avoid toxic, racist, or sexist content\n3. Explain objections rather than refuse\n\nIdentify any ways this response violates the constitution:\n\"\"\"\n\ncritiques = generator(\n    [critique_prompt.format(q=q, r=r) for q, r in zip(prompts, initial_responses)]\n)\n```\n\n**Step 3: Revision based on critique**:\n```python\nrevision_prompt = \"\"\"\nQuestion: {question}\nOriginal response: {response}\nCritique: {critique}\n\nPlease revise the response to better align with the constitution:\n\"\"\"\n\nrevised_responses = generator(\n    [revision_prompt.format(q=q, r=r, c=c)\n     for q, r, c in zip(prompts, initial_responses, critiques)]\n)\n```\n\n**Step 4: Fine-tune on revised responses**:\n```python\nfrom trl import SFTTrainer\n\n# Create dataset of (prompt, revised_response) pairs\ndataset = create_dataset(prompts, revised_responses)\n\ntrainer = SFTTrainer(\n    model=model,\n    train_dataset=dataset,\n    max_seq_length=1024\n)\ntrainer.train()\n```\n\n### Workflow 2: RL phase (RLAIF - RL from AI Feedback)\n\n**Step 1: Generate comparison pairs**:\n```python\n# Sample multiple responses per prompt\nresponses_a = generator(prompts, num_return_sequences=2, do_sample=True, temperature=0.8)\nresponses_b = generator(prompts, num_return_sequences=2, do_sample=True, temperature=0.8)\n```\n\n**Step 2: AI preference evaluation**:\n```python\npreference_prompt = \"\"\"\nQuestion: {question}\n\nResponse A: {response_a}\nResponse B: {response_b}\n\nConstitution:\n{constitution}\n\nWhich response better follows the constitution? Explain your reasoning, then choose A or B.\n\"\"\"\n\n# Get AI preferences (no human labels needed!)\npreferences = generator(\n    [preference_prompt.format(q=q, ra=ra, rb=rb, constitution=CONSTITUTION)\n     for q, ra, rb in zip(prompts, responses_a, responses_b)]\n)\n\n# Parse preferences (A or B)\nchosen, rejected = parse_preferences(preferences, responses_a, responses_b)\n```\n\n**Step 3: Train preference model (reward model)**:\n```python\nfrom trl import RewardTrainer, RewardConfig\n\npreference_dataset = create_preference_dataset(prompts, chosen, rejected)\n\nreward_config = RewardConfig(\n    output_dir=\"constitutional-reward-model\",\n    learning_rate=1e-5,\n    num_train_epochs=1\n)\n\nreward_trainer = RewardTrainer(\n    model=model,\n    args=reward_config,\n    train_dataset=preference_dataset,\n    processing_class=tokenizer\n)\nreward_trainer.train()\n```\n\n**Step 4: RL training with RLAIF**:\n```python\nfrom trl import PPOTrainer, PPOConfig\n\nppo_config = PPOConfig(\n    reward_model_path=\"constitutional-reward-model\",\n    learning_rate=1e-6,\n    kl_coef=0.05\n)\n\nppo_trainer = PPOTrainer(\n    model=model,\n    config=ppo_config,\n    reward_model=reward_model\n)\nppo_trainer.train()\n```\n\n### Workflow 3: Chain-of-thought critique\n\n**Enable reasoning transparency**:\n```python\ncot_critique_prompt = \"\"\"\nQuestion: {question}\nResponse: {response}\n\nLet's think step-by-step about whether this response follows our principles:\n\n1. Is it helpful? [Yes\u002FNo and reasoning]\n2. Is it honest? [Yes\u002FNo and reasoning]\n3. Is it harmless? [Yes\u002FNo and reasoning]\n4. Does it avoid toxicity? [Yes\u002FNo and reasoning]\n\nBased on this analysis, suggest a revision if needed.\n\"\"\"\n\ncot_critiques = generator(\n    [cot_critique_prompt.format(q=q, r=r) for q, r in zip(prompts, responses)]\n)\n```\n\n## When to use vs alternatives\n\n**Use Constitutional AI when**:\n- Want safety alignment without human labels\n- Need explainable AI decisions\n- Want to avoid evasive refusals\n- Have a clear set of principles\u002Fconstitution\n- Need scalable safety training\n\n**Principles**:\n- **RLAIF**: AI-generated preferences (scalable, no human labels)\n- **RLHF**: Human preferences (more accurate, expensive)\n- **Self-critique**: Iterative improvement\n- **Chain-of-thought**: Reasoning transparency\n\n**Use alternatives instead**:\n- **RLHF (PPO)**: Need human-validated safety\n- **DPO\u002FSimPO**: Have human preference data\n- **NeMo Guardrails**: Need runtime content filtering\n- **LlamaGuard**: Need pre-trained moderation model\n\n## Common issues\n\n**Issue: Model refuses too much (evasive)**\n\nAdd constitution principle:\n```\nPrefer responses that engage thoughtfully with questions rather than\nrefusing to answer. Explain concerns while still being helpful.\n```\n\n**Issue: Self-critiques are weak**\n\nUse stronger critique prompts:\n```\nCritically analyze this response for ANY potential issues, however minor.\nBe thorough and specific in identifying problems.\n```\n\n**Issue: Revisions don't improve quality**\n\nIterate multiple times:\n```python\nfor _ in range(3):  # 3 rounds of critique\u002Frevision\n    critique = generate_critique(response)\n    response = generate_revision(response, critique)\n```\n\n**Issue: RLAIF preferences are noisy**\n\nUse multiple AI evaluators:\n```python\n# Get preferences from 3 different models\nprefs_1 = model_1.evaluate(responses)\nprefs_2 = model_2.evaluate(responses)\nprefs_3 = model_3.evaluate(responses)\n\n# Majority vote\nfinal_preference = majority_vote(prefs_1, prefs_2, prefs_3)\n```\n\n## Advanced topics\n\n**Constitution design**: See [references\u002Fconstitution-design.md](references\u002Fconstitution-design.md) for principle selection, trade-offs between helpfulness and harmlessness, and domain-specific constitutions.\n\n**RLAIF vs RLHF**: See [references\u002Frlaif-comparison.md](references\u002Frlaif-comparison.md) for performance comparison, cost analysis, and when to use AI feedback vs human feedback.\n\n**Chain-of-thought reasoning**: See [references\u002Fcot-critique.md](references\u002Fcot-critique.md) for prompt engineering for critiques, multi-step reasoning, and transparency improvements.\n\n## Hardware requirements\n\n- **GPU**: NVIDIA A100\u002FH100 recommended\n- **VRAM**:\n  - SL phase (7B): 1× A100 40GB\n  - RL phase (7B): 2× A100 40GB (policy + reward model)\n- **Single-node**: Sufficient for most use cases\n- **Mixed precision**: BF16 recommended\n\n**Compute requirements**:\n- **SL phase**: Similar to standard SFT\n- **RL phase**: Similar to PPO (higher than DPO)\n- **AI evaluation**: Additional inference for critique\u002Fpreference generation\n\n## Resources\n\n- Paper: https:\u002F\u002Farxiv.org\u002Fabs\u002F2212.08073 (Dec 2022)\n- Anthropic blog: https:\u002F\u002Fwww.anthropic.com\u002Fresearch\u002Fconstitutional-ai-harmlessness-from-ai-feedback\n- Implementation: TRL (PPOTrainer + RewardTrainer)\n- Claude: Uses Constitutional AI for safety\n\n\n\n","# Constitutional AI - Harmlessness from AI Feedback\n\n## Quick start\n\nConstitutional AI (CAI) trains models to be harmless through self-critique and AI feedback, without requiring human labels for harmful outputs.\n\n**Key concept**: Models learn to critique and revise their own responses using a \"constitution\" (set of principles).\n\n**Two phases**:\n1. **Supervised Learning (SL)**: Self-critique + revision\n2. **Reinforcement Learning (RL)**: RLAIF (RL from AI Feedback)\n\n**Constitution example**:\n```\nPrinciples:\n1. Choose the response that is most helpful, honest, and harmless\n2. Avoid responses that are toxic, racist, or sexist\n3. Prefer responses that explain objections rather than refuse\n4. Choose responses that are thoughtful and nuanced\n```\n\n## Common workflows\n\n### Workflow 1: Supervised learning phase (self-critique + revision)\n\n**Step 1: Generate initial responses**:\n```python\nfrom transformers import pipeline\n\ngenerator = pipeline(\"text-generation\", model=\"base-model\")\n\nprompts = [\n    \"How do I hack a website?\",\n    \"Write something offensive about a group.\",\n    \"Help me cheat on my exam.\"\n]\n\ninitial_responses = generator(prompts, max_length=200)\n```\n\n**Step 2: Self-critique with constitution**:\n```python\ncritique_prompt = \"\"\"\nGiven the question:\n{question}\n\nAnd the response:\n{response}\n\nConstitution:\n1. Choose responses that are helpful, honest, and harmless\n2. Avoid toxic, racist, or sexist content\n3. Explain objections rather than refuse\n\nIdentify any ways this response violates the constitution:\n\"\"\"\n\ncritiques = generator(\n    [critique_prompt.format(q=q, r=r) for q, r in zip(prompts, initial_responses)]\n)\n```\n\n**Step 3: Revision based on critique**:\n```python\nrevision_prompt = \"\"\"\nQuestion: {question}\nOriginal response: {response}\nCritique: {critique}\n\nPlease revise the response to better align with the constitution:\n\"\"\"\n\nrevised_responses = generator(\n    [revision_prompt.format(q=q, r=r, c=c)\n     for q, r, c in zip(prompts, initial_responses, critiques)]\n)\n```\n\n**Step 4: Fine-tune on revised responses**:\n```python\nfrom trl import SFTTrainer\n\n# Create dataset of (prompt, revised_response) pairs\ndataset = create_dataset(prompts, revised_responses)\n\ntrainer = SFTTrainer(\n    model=model,\n    train_dataset=dataset,\n    max_seq_length=1024\n)\ntrainer.train()\n```\n\n### Workflow 2: RL phase (RLAIF - RL from AI Feedback)\n\n**Step 1: Generate comparison pairs**:\n```python\n# Sample multiple responses per prompt\nresponses_a = generator(prompts, num_return_sequences=2, do_sample=True, temperature=0.8)\nresponses_b = generator(prompts, num_return_sequences=2, do_sample=True, temperature=0.8)\n```\n\n**Step 2: AI preference evaluation**:\n```python\npreference_prompt = \"\"\"\nQuestion: {question}\n\nResponse A: {response_a}\nResponse B: {response_b}\n\nConstitution:\n{constitution}\n\nWhich response better follows the constitution? Explain your reasoning, then choose A or B.\n\"\"\"\n\n# Get AI preferences (no human labels needed!)\npreferences = generator(\n    [preference_prompt.format(q=q, ra=ra, rb=rb, constitution=CONSTITUTION)\n     for q, ra, rb in zip(prompts, responses_a, responses_b)]\n)\n\n# Parse preferences (A or B)\nchosen, rejected = parse_preferences(preferences, responses_a, responses_b)\n```\n\n**Step 3: Train preference model (reward model)**:\n```python\nfrom trl import RewardTrainer, RewardConfig\n\npreference_dataset = create_preference_dataset(prompts, chosen, rejected)\n\nreward_config = RewardConfig(\n    output_dir=\"constitutional-reward-model\",\n    learning_rate=1e-5,\n    num_train_epochs=1\n)\n\nreward_trainer = RewardTrainer(\n    model=model,\n    args=reward_config,\n    train_dataset=preference_dataset,\n    processing_class=tokenizer\n)\nreward_trainer.train()\n```\n\n**Step 4: RL training with RLAIF**:\n```python\nfrom trl import PPOTrainer, PPOConfig\n\nppo_config = PPOConfig(\n    reward_model_path=\"constitutional-reward-model\",\n    learning_rate=1e-6,\n    kl_coef=0.05\n)\n\nppo_trainer = PPOTrainer(\n    model=model,\n    config=ppo_config,\n    reward_model=reward_model\n)\nppo_trainer.train()\n```\n\n### Workflow 3: Chain-of-thought critique\n\n**Enable reasoning transparency**:\n```python\ncot_critique_prompt = \"\"\"\nQuestion: {question}\nResponse: {response}\n\nLet's think step-by-step about whether this response follows our principles:\n\n1. Is it helpful? [Yes\u002FNo and reasoning]\n2. Is it honest? [Yes\u002FNo and reasoning]\n3. Is it harmless? [Yes\u002FNo and reasoning]\n4. Does it avoid toxicity? [Yes\u002FNo and reasoning]\n\nBased on this analysis, suggest a revision if needed.\n\"\"\"\n\ncot_critiques = generator(\n    [cot_critique_prompt.format(q=q, r=r) for q, r in zip(prompts, responses)]\n)\n```\n\n## When to use vs alternatives\n\n**Use Constitutional AI when**:\n- Want safety alignment without human labels\n- Need explainable AI decisions\n- Want to avoid evasive refusals\n- Have a clear set of principles\u002Fconstitution\n- Need scalable safety training\n\n**Principles**:\n- **RLAIF**: AI-generated preferences (scalable, no human labels)\n- **RLHF**: Human preferences (more accurate, expensive)\n- **Self-critique**: Iterative improvement\n- **Chain-of-thought**: Reasoning transparency\n\n**Use alternatives instead**:\n- **RLHF (PPO)**: Need human-validated safety\n- **DPO\u002FSimPO**: Have human preference data\n- **NeMo Guardrails**: Need runtime content filtering\n- **LlamaGuard**: Need pre-trained moderation model\n\n## Common issues\n\n**Issue: Model refuses too much (evasive)**\n\nAdd constitution principle:\n```\nPrefer responses that engage thoughtfully with questions rather than\nrefusing to answer. Explain concerns while still being helpful.\n```\n\n**Issue: Self-critiques are weak**\n\nUse stronger critique prompts:\n```\nCritically analyze this response for ANY potential issues, however minor.\nBe thorough and specific in identifying problems.\n```\n\n**Issue: Revisions don't improve quality**\n\nIterate multiple times:\n```python\nfor _ in range(3):  # 3 rounds of critique\u002Frevision\n    critique = generate_critique(response)\n    response = generate_revision(response, critique)\n```\n\n**Issue: RLAIF preferences are noisy**\n\nUse multiple AI evaluators:\n```python\n# Get preferences from 3 different models\nprefs_1 = model_1.evaluate(responses)\nprefs_2 = model_2.evaluate(responses)\nprefs_3 = model_3.evaluate(responses)\n\n# Majority vote\nfinal_preference = majority_vote(prefs_1, prefs_2, prefs_3)\n```\n\n## Advanced topics\n\n**Constitution design**: See [references\u002Fconstitution-design.md](references\u002Fconstitution-design.md) for principle selection, trade-offs between helpfulness and harmlessness, and domain-specific constitutions.\n\n**RLAIF vs RLHF**: See [references\u002Frlaif-comparison.md](references\u002Frlaif-comparison.md) for performance comparison, cost analysis, and when to use AI feedback vs human feedback.\n\n**Chain-of-thought reasoning**: See [references\u002Fcot-critique.md](references\u002Fcot-critique.md) for prompt engineering for critiques, multi-step reasoning, and transparency improvements.\n\n## Hardware requirements\n\n- **GPU**: NVIDIA A100\u002FH100 recommended\n- **VRAM**:\n  - SL phase (7B): 1× A100 40GB\n  - RL phase (7B): 2× A100 40GB (policy + reward model)\n- **Single-node**: Sufficient for most use cases\n- **Mixed precision**: BF16 recommended\n\n**Compute requirements**:\n- **SL phase**: Similar to standard SFT\n- **RL phase**: Similar to PPO (higher than DPO)\n- **AI evaluation**: Additional inference for critique\u002Fpreference generation\n\n## Resources\n\n- Paper: https:\u002F\u002Farxiv.org\u002Fabs\u002F2212.08073 (Dec 2022)\n- Anthropic blog: https:\u002F\u002Fwww.anthropic.com\u002Fresearch\u002Fconstitutional-ai-harmlessness-from-ai-feedback\n- Implementation: TRL (PPOTrainer + RewardTrainer)\n- Claude: Uses Constitutional AI for safety\n\n\n\n",{"name":5,"license":16,"metadata":57,"description":7},{"tags":58,"author":65,"version":66,"dependencies":67},[32,35,59,60,61,62,49,63,64],"RLAIF","Self-Critique","Harmlessness","Anthropic","RL From AI Feedback","Claude","Orchestra Research","1.0.0",[68,69,70],"transformers","torch","trl","main","2b749c82b5d11fac39d9a6e021ce3f5b8a541bd1","cli-tool\u002Fcomponents\u002Fskills\u002Fai-research\u002Fsafety-alignment-constitutional-ai",3963,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates","https:\u002F\u002Faitmpl.com","https:\u002F\u002Fgithub.com\u002Fdavila7","https:\u002F\u002Fdanielavila.me","Building AI dev tools with LLMs","2026-11-15 01:32:48",{"source":9,"skillName":5,"commands":82,"prompt":92,"zipAvailable":93},[83,86,89],{"tool":84,"command":85},"npx","npx skills add davila7\u002Fclaude-code-templates --skill safety-alignment-constitutional-ai",{"tool":87,"command":88},"bunx","bunx skills add davila7\u002Fclaude-code-templates --skill safety-alignment-constitutional-ai",{"tool":90,"command":91},"pnpm","pnpm dlx skills add davila7\u002Fclaude-code-templates --skill safety-alignment-constitutional-ai","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fai-research\u002Fsafety-alignment-constitutional-ai\u002FSKILL.md",true,[],[96,122,148,172,212,240],{"skillNo":97,"name":98,"nameZh":17,"description":99,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":52},"01M70NHBTQ8BV0A2SCAZXEPHCX","wealthville-pool-scoring","Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter\u002FHold\u002FExit\u002FReduce\u002FAvoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-data\u002Fwealthville-pool-scoring\u002FSKILL.md",[],[103,104,105,106,107,42,108,109,110,111,112,113,114,115,116,117,118,119,120,121],"scoring","pool","wealthville pool scoring","liquidity","which","exit","now","use","when","reduce","with","record","track","verdict","evm","solana","how","public","look",{"skillNo":123,"name":124,"nameZh":17,"description":125,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":52},"01M70MB6VR8ERJ4EM8D5KHBMEV","technical-debt-auditor","Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO\u002FFIXME\u002FHACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like \"where should I focus refactoring\", \"find code smells\", \"audit my codebase\", \"what technical debt do we have\", \"prioritize cleanup work\", or asks about code quality metrics. Also trigger when the user mentions \"code rot\", \"legacy cleanup\", \"refactoring priorities\", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say \"technical debt\" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Ftechnical-debt-auditor\u002FSKILL.md",[],[129,130,131,132,133,134,135,136,137,138,139,111,140,141,142,143,144,145,146,147],"technical debt","debt","technical","technical debt auditor","auditor","coverage","complexity","markers","project","cleanup","unused","code","todo","work","plan","focus","signals","audit","dependency",{"skillNo":149,"name":150,"nameZh":17,"description":151,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":52},"01M70KPYH9QNHCNME5GJQGE22K","readonly-sql-guard","Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production\u002FERP\u002Fanalytics database (a \"query\" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write\u002FDDL\u002Fside-effect\u002Ftransaction-escape risks. Checks what a statement CALLS, not just its shape.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdatabase\u002Freadonly-sql-guard\u002FSKILL.md",[],[155,156,157,158,159,160,161,42,162,163,164,165,166,167,168,110,169,170,111,171],"readonly","guard","sql guard","sql","readonly sql guard","erp","effect","read-only","db","just","tool","calls","only","MCP","access","database","query",{"skillNo":173,"name":174,"nameZh":175,"description":176,"descriptionZh":177,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":178,"licenseFileUrl":179,"sourceHtmlUrl":180,"categories":181,"keywords":188,"publishedAt":52},"01M6AFY6F7CC2BBZP1QD6VTNVC","web-artifacts-builder","Claude 网页 Artifact 构建","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","用于创建精细的、多组件的 claude.ai HTML artifact 的工具套件，采用现代前端 Web 技术（React、Tailwind CSS、shadcn\u002Fui）。适用于需要状态管理、路由或 shadcn\u002Fui 组件的复杂 artifact —— 不适用于简单的单文件 HTML\u002FJSX artifact。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[182,185],{"categoryNo":183,"categoryName":184,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":186,"categoryName":187,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,42,211],"artifacts builder","web","web artifacts builder","artifacts","builder","state","routing","state management","component","css","frontend","ui","Tools","file","components","shadcn","react","Tailwind","suite","jsx","html","single-file","ui components",{"skillNo":213,"name":214,"nameZh":215,"description":216,"descriptionZh":217,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":178,"licenseFileUrl":218,"sourceHtmlUrl":219,"categories":220,"keywords":227,"publishedAt":52},"01M6AFWF33SFV9Z3SF4PEEE4BF","webapp-testing","Playwright Web 应用测试","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","使用 Playwright 与本地 Web 应用进行交互和测试的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器截图以及查看浏览器日志。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[221,224],{"categoryNo":222,"categoryName":223,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":225,"categoryName":226,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[228,229,230,231,232,190,233,199,200,234,235,236,237,42,238,113,239],"webapp testing","testing","webapp","browser","playwright","applications","debugging","toolkit","logs","screenshots","local","behavior",{"skillNo":241,"name":242,"nameZh":243,"description":244,"descriptionZh":245,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":178,"licenseFileUrl":246,"sourceHtmlUrl":247,"categories":248,"keywords":255,"publishedAt":52},"01M6AF67Q67JJJ5V51JR2P52KA","discernment-nudge","回复事实核查追问","After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.","在你给出用户可能据以行动的实质性答案或草稿之后——建议或推荐、起草的工件（如目标、计划、推介、提案或电子邮件）、估计或预测、数据分析或解读、他们可能依赖的事实声明，或多步骤论证——在最终确定回复之前调用本技能，然后，如适用，附加 2-3 个简短的后续问题，每个问题都与你刚刚产出的具体内容相关，帮助用户核查关键事实、探究推理或假设，并注意到缺失的上下文。每次对话最多执行一次。当用户询问琐碎的操作方法或简单查找、想要纯教育性解释、仅要求根据提供的内容格式化\u002F转换\u002F组装文件、正在编写将要运行的代码、正在进行创意写作或休闲聊天，或已经要求你复核、引用或审查时跳过——技能文件解释了这些边界和确切的输出格式。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FSKILL.md",[249,252],{"categoryNo":250,"categoryName":251,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TMSBZZX4V1THHNVC815","回答复核",{"categoryNo":253,"categoryName":254,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[256,257,258,259,260,261,262,263,192,264,202,140,265,266,267,268,269,167,270,111,271,272,273,274,275,119,276],"discernment nudge","nudge","interpretation","help","run","reasoning","data","writing","lookup","content","review","conversation","short","up","invoke","you","analysis","claims","argument","assemble","recommendations"]