Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

authoring-claude-mdauthoring Claude MD 搜索

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

1,454

周安装

60

GitHub Stars

125

下载量

475
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:authoring-claude-md(authoring Claude MD 搜索)
来源仓库:https://github.com/sammcj/agentic-coding
仓库路径:skills/authoring-claude-md
安装命令:
npx skills add https://github.com/sammcj/agentic-coding --skill authoring-claude-md
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sammcj/agentic-coding --skill authoring-claude-md

简介

创建高效的 CLAUDE.md 与 .claude/rules/ 规则文件,增强 AI 代理的项目记忆。

  • 聚焦非显而易见约定、已知问题与路径级指令,避免噪音干扰。
  • 适用于复杂项目上下文管理与 Agent 行为一致性维护。
  • 安装需通过 npx skills add 添加 agentic-coding 仓库中的 authoring-claude-md 技能。
  • 每句话必须提供实质性价值,禁止复制通用编码建议或明显模式。

SKILL.md

CLAUDE.md and Rules Authoring

Create effective CLAUDE.md files and .claude/rules/ rule files that serve as project-specific memory for AI coding agents.

Purpose

CLAUDE.md files and rule files provide AI agents with:

  • Non-obvious conventions, architectural patterns and gotchas
  • Confirmed solutions to recurring issues
  • Project-specific context not found in standard documentation
  • Path-scoped instructions that only load when relevant files are touched

Not for: Obvious patterns, duplicating documentation, or generic coding advice.

Core Principles

Signal over noise: Every sentence must add non-obvious value. If an AI agent could infer it from reading the codebase, omit it.

Actionable context: Focus on "what to do" and "why it matters", not descriptions of what exists.

Solve real friction, not theoretical concerns: Add to CLAUDE.md based on actual problems encountered, not hypothetical scenarios. If you repeatedly explain the same thing to Claude, document it. If you haven't hit the problem yet, don't pre-emptively solve it.

Structure

  • Use headings for clear organisation. Suggested sections:
  • Use 2-4 sections. Only include what adds value.

When to Use .claude/rules/ Instead

For larger projects, break instructions into separate files under .claude/rules/. Each .md file covers one topic. Prefer rules over a single CLAUDE.md when:

  • Instructions are growing beyond 200 lines
  • Different rules apply to different parts of the codebase (frontend vs backend, API vs CLI)
  • Multiple team members maintain different sections
  • Some instructions only matter when working with specific file types

Rule File Basics

your-project/
├── .claude/
│   ├── CLAUDE.md           # Main project instructions
│   └── rules/
│       ├── code-style.md   # Always loaded
│       ├── testing.md      # Always loaded
│       └── security.md     # Always loaded

Files are discovered recursively, so subdirectories like frontend/ and backend/ work. Rules without paths frontmatter load at launch with the same priority as .claude/CLAUDE.md.

The same authoring principles apply to rule files: signal over noise, actionable context, no obvious information.

Path-Specific Rules

Scope rules to specific files using YAML frontmatter with the paths field. These only load when Claude reads files matching the glob patterns, reducing noise and saving context.

---
paths:
  - "src/api/**/*.ts"
---

# API Development Rules

- All API endpoints must include input validation
- Use the standard error response format
- Include OpenAPI documentation comments

Rules without a paths field apply unconditionally. Path-scoped rules trigger on file read, not on every tool use.

User-Level Rules

Personal rules that apply across all your projects live at ~/.claude/rules/. These load before project rules, giving project rules higher priority.

~/.claude/rules/
├── preferences.md    # Personal coding preferences
└── workflows.md      # Preferred workflows

Rules vs Skills

Rules load every session (or when matching files are opened). For task-specific instructions that don't need constant context, use skills instead. Skills load only when invoked or when Claude determines they're relevant.

What to Include

Architectural decisions: Why microservices over monolith, event-driven patterns, state management

Non-obvious conventions:

  • "Use _internal suffix for private APIs not caught by linter"
  • "Date fields always UTC, formatting happens client-side"
  • "Avoid ORM for reports, use raw SQL in /queries"

Recurring issues:

  • "TypeError in auth: ensure verify() uses Buffer.from(secret, 'base64')"
  • "Cache race condition: acquire lock before checking status"

Project patterns: Error handling, logging, API versioning, migrations

What to Exclude

  • Line numbers: Files change, references break. Use descriptive paths: "in src/auth/middleware.ts" not "line 42"
  • Obvious information: "We use React" (visible in package.json)
  • Setup steps: Belongs in README unless highly non-standard
  • Generic advice: "Write good tests" adds no project-specific value
  • Temporary notes: "TODO: refactor this" belongs in code comments
  • Duplicate content: If it's in README, don't repeat it

Anti-Patterns

Code style guidelines: Don't document formatting rules, naming conventions, or code patterns that linters enforce. Use ESLint, Prettier, Black, golangci-lint, or similar tools. LLMs are in-context learners and will pick up patterns from codebase exploration. Configure Claude Code Hooks to run formatters if needed.

Task-specific minutiae: Database schemas, API specifications, deployment procedures belong in their own documentation. Link to them from CLAUDE.md rather than duplicating content.

Kitchen sink approach: Not every gotcha needs CLAUDE.md. Ask: "Is this relevant across most coding sessions?" If no, it belongs in code comments or specific documentation files.

Linking to Existing Documentation

Point to existing docs rather than duplicating content. Provide context about when to read them:

Good:

# Architecture
Event-driven architecture using AWS EventBridge.

- For database schema: see src/database/SCHEMA.md when working with data models
- For auth flows: see src/auth/README.md when working with authentication

Bad: Copying schema tables, pasting deployment steps, or duplicating API flows into CLAUDE.md

Use file:line references for specific code: "See error handling in src/utils/errors.ts:45-67"

Writing Style

Be specific:

  • ❌ "Use caution with the authentication system"
  • ✅ "Auth tokens expire after 1 hour. Background jobs must refresh tokens using refreshToken() in src/auth/refresh.ts"

Be concise:

  • ❌ "It's important to note that when working with our database layer, you should be aware that..."
  • ✅ "Database queries: Use Prisma for CRUD, raw SQL for complex reports in /queries"

Use active voice:

  • ❌ "Migrations should be run before deployment"
  • ✅ "Run migrations before deployment: npm run migrate:prod"

When to Update

Add to CLAUDE.md when:

  • Discovering a non-obvious pattern discovered after codebase exploration
  • Solving an issue that took significant investigation that will be encountered again by other agents
  • Finding a gotcha that's not immediately clear from code

Don't add:

  • One-off fixes for specific bugs
  • Information easily found in existing docs
  • Temporary workarounds (these belong in code comments)
  • Verbose descriptions or explanations

Spelling Conventions

Always use Australian English spelling

Example Structure

# Architecture
Event-driven architecture using AWS EventBridge. Services communicate via events, not direct calls.

Auth: JWT tokens with refresh mechanism. See src/auth/README.md for detailed flows when working on authentication.
Database schema and relationships: see src/database/SCHEMA.md when working with data models.

# Conventions
- API routes: Plural nouns (`/users`, `/orders`), no verbs in paths
- Error codes: 4-digit format `ERRR-1001`, defined in src/errors/codes.ts
- Feature flags: Check in middleware, not in business logic
- Dates: Always UTC in database, format client-side via src/utils/dates.ts

# Gotchas

**Cache race conditions**: Always acquire lock before checking cache status

**Background job authentication**: Tokens expire after 1 hour. Refresh using
`refreshToken()` in src/auth/refresh.ts before making API calls.

# Testing

- Tests should never have external API calls or dependencies.
- Run `make test` before committing.

Token Budget

Aim for 1k-4k tokens for CLAUDE.md. Most projects fit in 100-300 lines. A single CLAUDE.md is fine for most projects - if exceeding budget, consider whether splitting into .claude/rules/ files would help (especially if some content only applies to specific file types). If exceeding:

  1. Reword to be more concise
  2. Remove generic advice
  3. Ensure there's no duplicated content

Check token count: ingest CLAUDE.md (if available)

Review Checklist

Before finalising:

  • Wording is concise and not duplicated
  • Sections only add non-obvious value
  • No code style guidelines (use linters instead)
  • Links to existing docs rather than duplicating them
  • No vague or overly verbose guidance
  • No temporary notes or TODOs (unless requested by the user)
  • No line numbers in file references
  • Focused on stable, long-term patterns

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.44%
按下载量换算164

Claude

30.37%
按下载量换算144

Cursor

18.81%
按下载量换算89

Gemini CLI

9.21%
按下载量换算44

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills