Codebase Tipsのロゴ

Codebase Tips

コミュニティ
Heyvhuang
codebase-tips

Codebase · 29 tips: repo index and map, coding principles, AGENTS.md, scope rules.

概要

公開者Heyvhuang
リポジトリcopybook-skills
スキル名codebase-tips
スター
143
フォーク
9
同梱ファイル
30
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 30個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Codebase · 29 tips

Copybook's 29 tips on codebase, most saved first. Each tip's text, where it goes and what the user should get are in its file in references/.

  • If the user names a tip, use that tip. If they describe a task, choose the tip that best meets their goal and constraints from those that work with the agent doing the work. If several fit equally well, choose one. Tell the user in one sentence which tip you picked and why, then read its file and follow it. If another tip also fits and would materially change the approach or result, name it and say how it differs.
  • If the user said nothing, show them the list below (each tip's name and what it does) and ask which to use.
  • If none fits, say so and suggest copybook, which looks through all 128 tips.
TipWhat it does
codebase-memory MCP: an index of your repo codebase-memory-repo-indexDozens of grep and read turns per question: the repo as one graph of functions, files and dependencies; dead code found too.
Vibe-coding cleanup: 5 Codex /goal prompts vibe-coding-cleanup-promptsHalf your quota left at reset: dead code, duplicates and unneeded dependencies cut; scheduled tasks and old worktrees sorted.
Clickable repo map clickable-repo-mapBefore you change a repo: click any module for its callers, dependencies, tests and source evidence; a rule keeps it current.
Scope Guard: AGENTS.md rules for small tasks scope-guard-rulesAsked to change a config, it builds a framework: minimum sufficient change, reuse first, ask before widening, test narrowly.
Disk map of dev leftovers disk-map-of-dev-leftoversDisk almost full: a read-only scan, a treemap of what development left behind, and a cleanup script only for what you tick.
One AGENTS.md for Claude Code and Codex one-agents-md-for-both-agentsTwo agents, one rules file: plan first, smallest change, subagent roles, own the bug, verify before done, Lessons per correction.
Untangle /goal for spaghetti code untangle-goalMonths of vibe coding left the code in knots: an HTML wiring diagram, the worst numbered in red, then fixes tested one by one.
Investigate-and-plan prompt for Codex investigate-and-plan-promptBefore it implements on a guess: repo read, goal restated, assumptions and plan listed, then a stop for your approval.
Repeated PR comments as AGENTS.md rules pr-comments-as-agents-md-rulesA reviewer keeps flagging the same things: 50 recent PRs scanned, issues ranked by count, your picks written into AGENTS.md.
Archify: system diagrams from code archify-system-diagramsA system you have to explain: an HTML diagram you can search, trace up and downstream, compare across versions, export as PNG.
REA: take apart another app's feature rea-take-apart-a-featureA feature you like and can't see how it's built: taken down layer by layer, each finding with evidence, then a plan for your own.
Less defensive code: 4 AGENTS.md rules less-defensive-codeEven a tiny change gets null checks at every layer: Codex checks data once where it comes in, then just uses it.
CI time audit: 150 runs, 9 checks ci-time-auditCode takes minutes, then each PR waits on CI: the 5 slowest jobs split into queue, setup and run, and the line to change per fix.
MIT axiomatic design check for coupled code axiomatic-design-coupling-checkFixing one bug breaks ten other things: an MIT axiomatic design analysis that says whether your code is coupled.
Agent workspace audit agent-workspace-auditYour agent feels dumber over time: every instruction, skill, MCP and memory marked KEEP or REMOVE, cleared on your OK.
Agent memory tools: 8 repos in 4 kinds agent-memory-tools-8-reposNo memory of code, notes, sessions or long tasks: 8 repos in those 4 kinds, one of each installed on your OK.
3 slimmer AGENTS.md plans side by side 3-slimmer-agents-md-plansAGENTS.md past 200 lines gets followed less: 3 slimmer versions, each more aggressive, nothing lost, shown before changes.
No compatibility code yet: AGENTS.md rules no-compatibility-code-yetNo users yet, but the agent adds compatibility code and migrations: skip both, then docs, tests, smallest change and cleanup.
Claude Code permissions: deny, ask and allow commands deny-ask-and-allow-permissionsClaude deleted a config that 'looked unused': risky commands blocked, pushes ask first, routine ones run, deny always wins.
Ask before edge-case code: one AGENTS.md line ask-before-edge-case-codeThe agent codes for races that never happen: one line makes it state the risk and the odds, then wait for your OK.
Claude Code project instructions from your sessions instructions-from-your-sessionsBackground you re-explain every new session: pulled from your last 20 sessions and written up as project instructions.
~/.codex and ~/.claude sorted before cleanup codex-and-claude-sortedA cleanup that could delete your chats: items sorted Keep, History, Work, Clearable or Unknown, each command approved by you.
Mod ideas from your last 20 sessions mod-ideas-from-20-sessionsRequests you repeat, commands you stop or undo, how you check changes: ranked by how much each would help, your words quoted.
/teach: strategic programming on your project teach-strategic-programmingSpend tokens learning what AI can't replace: 3 questions about your codebase, then MISSION.md, a curriculum and lessons on it.
Bug-fix loop rules for CLAUDE.md or AGENTS.md bug-fix-loop-rulesAgents that both fix and review can't stop going back and forth: stop after two failed fixes, review only this round's changes.
ub-mode: the Clean Code author's agent rules ub-mode-clean-code-agent-rulesYour agent's code hides bugs and its tests fool you: a skill it follows on every change, with crapper, dryer and mutator checks.
Outdated CLAUDE.md and AGENTS.md review outdated-claude-md-reviewAgents follow an outdated CLAUDE.md over your code: its old instructions identified, and a rule that puts code first.
Repeat mistakes as helpers and lint rules repeat-mistakes-as-lint-rulesThe agent keeps making one mistake: the right way in a helper, the old way banned by lint, an error that names the helper to use.
Situation routing rules for skills situation-routing-for-skillsYour agent often forgets to use what you install, so you call each by name: the best fit per task, with one line on which and why.

同梱ファイル

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

よくある質問

AIスキル「Codebase Tips」では何ができますか?

Codebase · 29 tips: repo index and map, coding principles, AGENTS.md, scope rules.

TypingMindでCodebase Tipsを使うメリットは何ですか?

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

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

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

Codebase Tipsを使えるAIモデルはどれですか?

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

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

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

AIスキル「Codebase Tips」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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