360 Secure SkillHub
360 安全技能中心

claude-md

核心功能:读取仓库指南、脚本、源码等信息,验证事实后生成或更新CLAUDE.md,剔除无防错价值内容,修正过时约束。典型场景:仓库维护时整理规范,帮助代理避免具体操作错误。输入为仓库构建、CI、源码等相关信息,输出为精简后的CLAUDE.md,涵盖构建测试、架构、约定、需求等必要规则,每条规则均明确对应防错场景。

agenticweb4
agenticweb4
热度 7.62
最近更新 2026-09-15 10:01:36
分类:效率依赖:读写文件应用场景:摘要总结 / 模板 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add claude-md
Metadata
name
claude-md
description
Creates or prunes CLAUDE.md from verified repository commands, architecture seams, and exceptional conventions, retaining only rules that prevent a concrete agent error.
disable-model-invocation
true
license
Apache-2.0
metadata
{"language":"en","translation_of":"claude-md-cn","version":"0.1.0"}

CLAUDE.md

Read existing guidance, build scripts, CI, and relevant source. Verify each fact, then create or update CLAUDE.md using only the applicable sections below. Omit unsupported claims, empty sections, and placeholders; retain necessary conditions and exceptions.

Build / Test / Format

Use <single entry point> instead of <misleading command> because <reason>; <exception> is the only exception. Build: <command>; unit tests: <command>; integration tests: <command, prerequisite, and coverage>. After changing <file type>, run <generation or formatting command>; before commit, run <check>. For <special task>, read <documentation path>.

Architecture

This repository owns <scope>; <easily confused capability> lives in <other location>. <module> owns <responsibility> and must not depend on <module>. The contract and implementation entry for <cross-module or cross-process interaction> are at <path>. Use <default implementation> unless <condition> requires <alternative>.

Conventions

<path> is generated; edit <source> instead. Place new implementation in <smallest applicable module>. Follow <configuration or contribution guide> and preserve <exception not enforced by tooling>.

Requirements

<build, test, or runtime case> requires <version, platform, or tool> and does not support <known limit>. <special configuration> applies only when <condition>.

For every sentence ask: “What concrete mistake would the agent make if this were deleted?” Remove sentences with no specific preventive value, merge duplicates, and leave no placeholders. Preserve and report an existing constraint that cannot be verified; correct or remove one proven stale.