Token导航 LogoToken导航

Agent Skill · 研究检索

cavekit-writing(洞穴写作)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

cavekit-writing 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 62,244。

总安装 339周安装 14GitHub Stars 798下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/juliusbrussee/cavekit --skill cavekit-writing

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

为 AI 代理编写工具包遵循以下规则: WHAT,而不是 HOW——描述行为,而不是实现 每个需求都有可测试的验收标准——如果代理无法验证它,它就不会得到满足 带索引的分层——渐进式披露以提高上下文效率 交叉引用——相关域相互链接 明确范围——超出范围的部分可以防止过度构建 大时紧凑 - 归档已解析的内容,将活动文件保持在 500 行以下 动态文档——随着发现差距,套件通过修订不断发展 每周安装量 14 存储库 朱利叶斯布鲁湖/卡夫基特 GitHub 之星 798 第一次看到 2026 年 4 月 9 日 安全审计 Gen Agent Trust Hub 通行证 套接字通行证 斯尼克通行证

来源仓库内路径:skills/cavekit-writing

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/juliusbrussee/cavekit --skill cavekit-writing;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cavekit-writing 怎么安装?

在终端执行 npx skills add https://github.com/juliusbrussee/cavekit --skill cavekit-writing。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cavekit-writing 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cavekit-writing 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

cavekit-writing 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

cavekit-writing 用的人多吗?

公开数据是累计安装 339 次,近一周安装 14 次,下载 111 次,GitHub 798 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cavekit-writing 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
cavekit-writing

洞穴写作 · 本页

339798接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Cavekit Writing

Core Principle: Kits Describe WHAT, Not HOW

Kits are implementation-agnostic. They define what the system must do and how to verify it, but never prescribe a specific framework, language, or architecture.

This is the fundamental distinction in Cavekit:

  • Kits = WHAT must be true (framework-agnostic, durable, portable)
  • Plans = HOW to build it (framework-specific, derived from kits)
  • Code = the implementation (generated from plans, validated against kits)

Why Implementation-Agnostic?

When kits avoid prescribing HOW, they become:

  • Portable — the same kits can drive implementations in different frameworks
  • Durable — kits survive technology migrations
  • Testable — acceptance criteria are about behavior, not implementation details
  • Reusable — the same kits work for greenfield, rewrites, and cross-framework evaluation

Bad cavekit requirement: "Use React useState hook to manage form state" Good cavekit requirement: "Form state persists across user interactions within a session. Acceptance: entering values, navigating away, and returning preserves all entered values."


Every Requirement Needs Testable Acceptance Criteria

This is the single most important rule in Cavekit writing. If an agent cannot automatically validate a requirement, that requirement will not be met.

The Validation-First Rule

Every requirement must answer: "How would an automated test verify this?"

Weak CriterionStrong Criterion
"UI should look good""All interactive elements have minimum 44x44px touch targets"
"System should be fast""API responses return within 200ms at p95 under 100 concurrent users"
"Handle errors gracefully""Network failures display a retry prompt with exponential backoff (1s, 2s, 4s)"
"Support authentication""Valid credentials return a session token; invalid credentials return 401 with error message"

Acceptance Criteria Format

Each criterion should be:

  • Observable — can be checked by reading output, UI state, or logs
  • Deterministic — same input always produces same pass/fail result
  • Automatable — an agent can write a test that checks this
  • Independent — does not depend on subjective judgment
**Acceptance Criteria:**
- [ ] {Action} results in {observable outcome}
- [ ] Given {precondition}, when {action}, then {result}
- [ ] {Metric} meets {threshold} under {conditions}

Hierarchical Structure with Index

Kits must be organized as a hierarchy — one index file linking to domain-specific sub-kits. This enables progressive disclosure: agents read the index first, then only the sub-kits relevant to their task.

The Cavekit Index Pattern

Create a cavekit-overview.md as the entry point:

# Cavekit Overview

## Domains

| Domain | Cavekit File | Summary |
|--------|-----------|---------|
| Authentication | cavekit-auth.md | User registration, login, session management, OAuth |
| Data Models | cavekit-data-models.md | Core entities, relationships, validation rules |
| API | cavekit-api.md | REST endpoints, request/response formats, error handling |
| UI Components | cavekit-ui-components.md | Shared components, accessibility, responsive behavior |
| Notifications | cavekit-notifications.md | Email, push, in-app notification delivery |

## Cross-Cutting Concerns
- Security requirements: see cavekit-auth.md R3, cavekit-api.md R7
- Performance budgets: see cavekit-api.md R12, cavekit-ui-components.md R5
- Accessibility: see cavekit-ui-components.md R8-R10

Why Hierarchical?

  1. Context window efficiency — agents load only the domains they need
  2. Parallel work — different agents can own different spec domains
  3. Review efficiency — humans can review domain-by-domain
  4. Cross-referencing — domains link to each other explicitly

Cross-Referencing Between Kits

Related kits must link to each other. Cross-references prevent requirements from being lost at domain boundaries.

Cross-Reference Patterns

## Cross-References
- **Depends on:** cavekit-auth.md R1 (session tokens required for API access)
- **Depended on by:** cavekit-notifications.md R4 (uses user preferences from this cavekit)
- **Related:** cavekit-ui-components.md R6 (error display components used by this domain)

When to Cross-Reference

  • When one domain's requirement depends on another domain's output
  • When shared entities are defined in one cavekit but used in many
  • When validation criteria span multiple domains
  • When out-of-scope items are in-scope for another cavekit

Full Cavekit Format Template

Use this template for every domain cavekit:

# Cavekit: {Domain Name}

## Scope
{One paragraph describing what this spec covers and its boundaries.}

## Requirements

### R1: {Requirement Name}
**Description:** {What must be true — stated in terms of behavior, not implementation.}
**Acceptance Criteria:**
- [ ] {Testable criterion 1}
- [ ] {Testable criterion 2}
- [ ] {Testable criterion 3}
**Dependencies:** {Other specs/requirements this depends on, or "None"}

### R2: {Requirement Name}
**Description:** {What must be true}
**Acceptance Criteria:**
- [ ] {Testable criterion 1}
- [ ] {Testable criterion 2}
**Dependencies:** {Dependencies}

### R3: ...

## Out of Scope
{Explicit list of things this cavekit does NOT cover. This is critical — it prevents
agents from over-building and clarifies domain boundaries.}
- {Thing explicitly excluded and why}
- {Another exclusion}

## Cross-References
- See also: cavekit-{related-domain}.md — {why it is related}
- Depends on: cavekit-{dependency}.md R{N} — {what is needed}
- Depended on by: cavekit-{dependent}.md R{N} — {what depends on this}

Template Rules

  1. Number requirements sequentially (R1, R2, R3...) — agents reference them by ID
  2. Every requirement gets acceptance criteria — no exceptions
  3. Out of Scope is mandatory — explicit exclusions prevent scope creep
  4. Cross-References section is mandatory — even if it says "None"
  5. Scope section is one paragraph — concise boundary description

Greenfield Pattern: Reference Material → Kits

When building from scratch, you start with reference materials and derive kits from them.

Flow

context/refs/              context/kits/
├── prd.md          →      ├── cavekit-overview.md
├── design-doc.md   →      ├── cavekit-auth.md
├── api-draft.md    →      ├── cavekit-api.md
└── research/       →      ├── cavekit-data-models.md
    └── ...         →      └── cavekit-ui.md

Process

  1. Place all reference materials in context/refs/
  2. Run cavekit generation — agent reads all refs, decomposes into domains
  3. Agent produces:

- cavekit-overview.md — index with domain summaries - One cavekit-{domain}.md per identified domain - Cross-references between related domains

  1. Human reviews kits for completeness and correctness
  2. Iterate — refine kits based on review feedback

Greenfield Prompt Pattern

The first prompt in a greenfield pipeline (typically 001-generate-kits-from-refs.md) should:

  • Read all files in context/refs/
  • Decompose reference material into domains
  • Generate kits following the template above
  • Create cavekit-overview.md as the index
  • Cross-reference related kits

Rewrite Pattern: Old Code → Reference Docs → Kits

When rewriting an existing system, the existing code becomes your reference material. But you never go directly from old code to new code — you always extract kits first.

Flow

Existing codebase          context/refs/              context/kits/
├── src/            →      ├── ref-apis.md      →     ├── cavekit-overview.md
├── tests/          →      ├── ref-data-models.md →   ├── cavekit-auth.md
└── docs/           →      ├── ref-ui-components.md →  ├── cavekit-api.md
                           └── ref-architecture.md →   └── cavekit-data.md

Process

  1. Agent explores the existing codebase and generates reference documents
  2. Reference docs capture the current system's behavior, APIs, data models, and UI patterns
  3. Agent generates kits from reference docs — implementation-agnostic requirements
  4. Validate kits against existing code — verify acceptance criteria match current behavior
  5. Proceed with normal Hunt — kits drive the new implementation

Rewrite Prompt Pattern

Rewrites typically use more prompts because of the reverse-engineering step:

  • 001: Generate reference materials from old code
  • 002: Generate kits from references + feature scope
  • 003: Validate kits against existing codebase
  • 004+: Plans and implementation

The key difference from greenfield: step 003 validates that your kits actually describe what the old system does, before you start building the new one.


Cavekit Compaction

When implementation tracking or cavekit files grow beyond approximately 500 lines, they become unwieldy for agents to process efficiently. Spec compaction compresses large files while preserving active context.

When to Compact

  • Implementation tracking file exceeds 500 lines
  • Cavekit file has many resolved/completed requirements mixed with active ones
  • Agent is spending too much context window on historical information

How to Compact

  1. Identify resolved content: completed tasks, resolved issues, archived dead ends
  2. Archive removed content to a separate file (e.g., impl/archive/impl-domain-v1.md)
  3. Preserve in the compacted file:

- All active/in-progress tasks - All open issues - Recent dead ends (last 2-3 sessions) - Current test health status - Active cross-references

  1. Target: under 500 lines in the active file

Compaction Rule

Never delete information — move it to an archive. Agents can still find archived context if needed, but it will not consume context window during normal operations.


Gap Analysis

Gap analysis compares what was built against what was intended, identifying where kits, plans, or validation fell short.

How to Perform Gap Analysis

  1. Read kits (intended behavior) and implementation tracking (what was built)
  2. For each cavekit requirement, check if acceptance criteria are satisfied
  3. Classify each requirement:
StatusMeaning
CompleteAll acceptance criteria pass
PartialSome criteria pass, others do not
MissingRequirement not implemented at all
Over-builtImplementation exceeds cavekit (may indicate cavekit gap)
  1. Report gaps with: which cavekit, which criterion, what is missing
  2. Feed gaps into revision — update kits if needed, then re-implement

Gap Analysis as Feedback

Gap analysis is not a one-time activity. Run it:

  • After each implementation iteration
  • Before starting a new session (to prioritize work)
  • When convergence stalls (to identify what is blocking progress)

Integration with Other Skills

Collaborative Design in the Draft Phase

The Draft phase (/ck:sketch) now embeds brainstorming principles directly. When running in interactive mode (no arguments), the drafter follows a collaborative design process before generating any files:

  1. Explore project context — check existing files, docs, commits before asking questions
  2. Ask clarifying questions one at a time — understand purpose, constraints, success criteria
  3. Propose 2-3 domain decomposition approaches — with tradeoffs and a recommendation
  4. Present the design incrementally — section by section, get approval per domain
  5. Generate kits only after design approval — formalize with acceptance criteria
  6. Cavekit review loop — automated reviewer checks quality, up to 3 iterations
  7. User review gate — explicit approval before transitioning to Architect phase

This process applies to EVERY project regardless of perceived simplicity. The design can be short for simple projects, but it must happen.

Visual companion: For projects involving visual elements (UI, architecture diagrams), the Draft phase can use a browser-based visual companion to show mockups and diagrams during the design conversation. See references/visual-companion.md.

YAGNI enforcement: During the design conversation and cavekit generation, actively strip requirements the user did not ask for. Smaller kits are better kits.

With ck:design-system

When DESIGN.md exists at the project root, kits for UI domains should reference design tokens in acceptance criteria. This creates a traceable chain: DESIGN.md -> cavekit acceptance criterion -> plan task -> implementation.

Acceptance Criterion TypeDesign Reference
"Button has primary CTA appearance"DESIGN.md Section 4, primary button variant
"Text follows heading hierarchy"DESIGN.md Section 3, type scale
"Card has subtle elevation"DESIGN.md Section 6, elevation level 1
"Layout uses 12-column grid"DESIGN.md Section 5, grid system
"Colors adapt for dark mode"DESIGN.md Section 2, dark mode mapping

Do NOT duplicate DESIGN.md content into kits. Reference by section/token name only. If a color changes in DESIGN.md, kits should not need updating.

When a cavekit needs a visual pattern not yet defined in DESIGN.md, note it in the acceptance criterion:

- [ ] Component uses card-like container [DESIGN.md: pattern not yet defined — flag for design update]

With ck:validation-first

Every acceptance criterion in a cavekit must map to at least one validation gate. When writing kits, think about which gate will verify each requirement:

Acceptance Criterion TypeLikely Gate
"Code compiles without errors"Gate 1: Build
"Function returns correct output for input X"Gate 2: Unit Tests
"User can complete workflow end-to-end"Gate 3: E2E/Integration
"Response time under N ms"Gate 4: Performance
"Application starts and displays main screen"Gate 5: Launch Verification
"UI matches design intent"Gate 6: Human Review

With ck:context-architecture

Kits live in the context/kits/ directory. See ck:context-architecture for the full context directory structure, CLAUDE.md conventions, and multi-repo strategies.

With ck:impl-tracking

As kits are implemented, progress is tracked in context/impl/ documents. Dead ends discovered during implementation should be recorded to prevent future agents from retrying failed approaches.


Common Mistakes

1. Writing Implementation-Specific Kits

Wrong: "Use PostgreSQL with a users table containing columns: id (UUID), email (VARCHAR),..." Right: "User accounts have a unique identifier and email. Email must be unique across all accounts. Acceptance: creating two accounts with the same email fails with a duplicate error."

2. Vague Acceptance Criteria

Wrong: "System handles errors properly" Right: "When a network request fails, the UI displays an error message within 2 seconds and offers a retry action. Acceptance: simulating network failure shows error banner with retry button."

3. Missing Out of Scope

Every cavekit needs explicit exclusions. Without them, agents will over-build or make assumptions.

4. No Cross-References

Domains do not exist in isolation. If cavekit-auth defines session tokens that cavekit-api uses, both kits must cross-reference each other.

5. Monolithic Kits

A single 1000-line cavekit file defeats progressive disclosure. Decompose into domains with a clear index.


Summary

Writing kits for AI agents follows these rules:

  1. WHAT, not HOW — describe behavior, not implementation
  2. Every requirement gets testable acceptance criteria — if agents cannot validate it, it will not be met
  3. Hierarchical with an index — progressive disclosure for context efficiency
  4. Cross-referenced — related domains link to each other
  5. Explicitly scoped — out-of-scope section prevents over-building
  6. Compact when large — archive resolved content, keep active files under 500 lines
  7. Living documents — kits evolve through revision as gaps are discovered

平台分布

Codex

38.76%
按下载量换算43

Claude

28.77%
按下载量换算32

Cursor

17.66%
按下载量换算20

Gemini CLI

9.06%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills