スキル一覧に戻る
aster-void

ai-docs

by aster-void

Everything has been nixified.

1🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: ai-docs description: ALWAYS use this skill when writing AI documentation. Covers CLAUDE.md, AGENTS.md, system prompts, AI-targeted comments, and architecture docs for AI consumption.

AI Documentation Skill

Core Principles

DoDon't
XML tags (<rules>, <workflow>)Prose paragraphs
Templates: {placeholder}Vague instructions
Positive: "Do X"Negative: "Don't Y" (unless prohibiting)
One task per promptOverloaded prompts
Observable outputInternal instructions ("mentally X")
Concrete examplesAbstract rules
<3000 tokensLong verbose docs
TDD: tests firstImplementation first

Document Template

<rules>
1. [Rule]: `good` not `bad`
</rules>

<workflow>
1. {step with placeholder}
2. [Decision] {cond} → {action}
</workflow>

<tools>
tool = gotcha or constraint
</tools>

Writing Rules

Structure:    BAD "keep commits clear" → GOOD `{scope}: {msg}`
Positive:     BAD "Don't cd" → GOOD "Stay at repo root"
Concrete:     BAD "reasonably sized" → GOOD "~100 lines"
Observable:   BAD "mentally verify" → GOOD "output: Task, Constraints, Verify"
Decision:     [Decision] simple → exec | complex → breakdown

Followable Workflows

AI docs should include step-by-step workflows AI can mechanically follow.

  • Numbered steps, single action each
  • [Decision] {cond} → {action} for branches
  • {placeholder} for fill-ins

example:

<workflow>
## Adding a NixOS Module
1. Create `modules/{home|nixos}/{name}/default.nix`
2. Add option: `my.{name}.enable = lib.mkEnableOption "{name}";`
3. [Decision] multiple configs → use collectFiles | single → inline
4. Import in parent default.nix
5. Verify: `nix flake check`
</workflow>

Anti-pattern: "Create appropriate module structure based on your judgment"

Content & Length

Include: conventions, constraints, decision templates, tool gotchas Exclude: generic best practices, tool docs, code explanations

DocLines
CLAUDE.md50-150
Skills50-100

Checklist

  1. XML tags? 2. {placeholders}? 3. Positive framing? 4. [Decision] markers? 5. Examples? 6. Under limit?

スコア

総合スコア

40/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です