Scaffold Claudeのロゴ

Scaffold Claude

コミュニティ
ragnar-pwninskjold
scaffold-claude

Use when the user wants to create, draft, or scaffold a CLAUDE.md (or AGENTS.md) file for their project. Triggers on "scaffold CLAUDE.md", "write a CLAUDE.md", "set up CLAUDE.md", "/scaffold-claude", or any request to bootstrap project-level Claude/agent instructions. Produces a scratchpad draft that captures edge cases and tribal knowledge — not derivable facts.

概要

公開者ragnar-pwninskjold
リポジトリtech-snacks
スキル名scaffold-claude
スター
138
フォーク
30
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ragnar-pwninskjoldがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Scaffold Claude」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ragnar-pwninskjold/tech-snacks/tree/main/plugins/tech-snacks/skills/scaffold-claude
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ragnar-pwninskjold/tech-snacks.git /tmp/tech-snacks
mkdir -p .claude/skills
cp -r /tmp/tech-snacks/plugins/tech-snacks/skills/scaffold-claude .claude/skills/scaffold-claude
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでScaffold Claudeを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にScaffold Claudeを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Scaffold Claudeは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

scaffold-claude

Scaffold a CLAUDE.md for the user's project. Output is written to a scratchpad so the user can review and move it to the repo root themselves.

The file you produce documents edge cases, non-obvious choices, and tribal knowledge — things Claude can't read off package.json, the directory tree, or the README. If a fact is derivable, it does not belong in the file.

The Iron Rule

Never write a section based on inference. Always ask, and stub when the answer is "skip" or "I don't know."

A stubbed section (a <!-- TODO: ... --> comment) is strictly better than a section filled with plausible-sounding guesses. Guesses encode false confidence that future Claude will trust.

When to Use

  • User says /scaffold-claude or asks to "scaffold/write/create CLAUDE.md"
  • User asks for an AGENTS.md (same shape, different filename — ask which)
  • User has a project but no CLAUDE.md and wants one
  • User has a CLAUDE.md they want to redo from scratch

When NOT to Use

  • User wants to edit an existing CLAUDE.md surgically → just edit it, don't run the full interview
  • User wants a tiered, full-codebase AGENTS.md across many directories → use the intent-layer-capture skill instead
  • User wants project-level CLAUDE.md updates triggered by code changes → that's a hook, not this skill

Output Location

Write to: docs/scratchpad/CLAUDE.md (relative to the user's current working directory)

  • Confirm the path with the user before writing.
  • If docs/scratchpad/ doesn't exist, create it.
  • If a file already exists at that path, ask before overwriting.
  • Do NOT write to the repo root. The user moves the file when they're satisfied.

The Workflow

1. Scan (read-only, narrow)

Read these if they exist, only to identify what to ask about — not to fill in:

  • package.json, Gemfile, pyproject.toml, go.mod, Cargo.toml (any one that's present)
  • Top-level directory listing (just names, not contents)
  • README.md (skim, do not summarize into the CLAUDE.md)
  • Existing CLAUDE.md, AGENTS.md, .cursorrules, .github/copilot-instructions.md — if any exist, mention them and ask whether to merge or start fresh

State what you found in one or two sentences. Example: "Saw a Next.js + Drizzle setup with a lib/ directory and no existing CLAUDE.md. I won't assume anything about your conventions — I'll ask."

2. Interview

Walk through the 8 sections one at a time, in order, using the scripts in references/interview-questions.md:

  1. Header paragraph
  2. Stack
  3. Commands
  4. Architecture (only what isn't obvious)
  5. Conventions
  6. Hard constraints
  7. Pointers to deeper docs
  8. Gotchas (tribal knowledge)

For each section:

  • Ask the question(s) from the reference.
  • Always offer "skip" as a valid answer.
  • If the user gives content, echo your paraphrase back before recording it.
  • If the user says "skip" or "I don't know" or "nothing interesting there," stub the section — do not pad it.

Do not batch all questions into one big message. The user's attention is the bottleneck; one section per turn.

3. Write

Use templates/claude-md-stub.md as the base. Fill in confirmed content. Leave every skipped section as the original <!-- TODO: ... --> stub from the template — do not delete the stubs, they help future-you know what was deliberately left blank.

Write to docs/scratchpad/CLAUDE.md after confirming the path.

4. Close

Tell the user:

  • The path you wrote
  • Which sections are filled vs stubbed
  • "Move it to the repo root when you're happy with it. Claude Code auto-loads CLAUDE.md at the root of any project."

No marketing flourishes. No "Now your project is well-documented!" Just the facts.

The One-Shot Example

references/postlane-example.md contains a complete, real-world CLAUDE.md.

Use it to calibrate:

  • The tone (terse, opinionated, every assertion has a because)
  • The shape of each section (what kinds of facts go where)
  • The discipline (nothing derivable from the codebase appears in the file)

Do NOT use it to:

  • Pre-fill the user's file with Postlane's choices
  • Copy any specific tech, command, gotcha, or PR reference
  • Suggest the user "should" have any specific section filled — they shouldn't if they have nothing real to put there

When showing the example to the user, frame it as: "This is what a fully-filled-in version looks like. Yours will be shorter — most projects don't have this much tribal knowledge to document yet, and that's correct."

Rationalizations to Resist

RationalizationReality
"Their package.json clearly shows Next.js — I'll just write that."If Next.js choice has no story, it doesn't belong in Stack. Ask first.
"Most projects use Prettier, I'll add a convention for it."Most projects ≠ this project. Ask.
"They didn't answer for Hard Constraints, but every project has some — let me suggest a few."An empty stub is correct. Invented constraints are worse than no constraints.
"The Gotchas section feels empty, let me add some 'common Next.js gotchas.'"Gotchas are bug-fix archaeology specific to this project. Generic gotchas are noise.
"I'll write 'good code quality' under Conventions as a placeholder."Vague conventions are worse than no conventions. Stub it.
"They said skip but I can tell from the repo that X is true."Skip means skip. The user knows their project; if they skipped, it's because there's nothing non-obvious to say.
"The example has 8 filled sections, theirs should too."The example is for a mature, scarred-by-production codebase. A new project might fill 2 sections. That's correct.

Red Flags — Stop and Recheck

If you find yourself:

  • Reading the codebase to infer content for the file (vs. to identify questions)
  • Suggesting wording before asking the question
  • Filling a section because it "looks empty"
  • Copying any specific Postlane content
  • Telling the user a stubbed section is "incomplete"

Stop. You've drifted into assumption. Re-ask the user; if they say skip, stub it.

Files

  • references/postlane-example.md — the one-shot, with framing for what to copy (structure, voice) vs. not copy (specifics)
  • references/interview-questions.md — section-by-section question scripts
  • templates/claude-md-stub.md — the empty template with TODO comments for each section

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Scaffold Claude」では何ができますか?

Use when the user wants to create, draft, or scaffold a CLAUDE.md (or AGENTS.md) file for their project. Triggers on "scaffold CLAUDE.md", "write a CLAUDE.md", "set up CLAUDE.md", "/scaffold-claude", or any request to bootstrap project-level Claude/agent instructions. Produces a scratchpad draft that captures edge cases and tribal knowledge — not derivable facts.

TypingMindでScaffold Claudeを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Scaffold Claudeはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにScaffold Claudeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ragnar-pwninskjold/tech-snacks/tree/main/plugins/tech-snacks/skills/scaffold-claudeを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Scaffold Claudeを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Scaffold Claudeで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもScaffold Claudeを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Scaffold Claude」は無料ですか?

はい。ragnar-pwninskjoldがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇