zeuikli/claude-code-workspace / .claude/skills/prime
prime
Verified冷啟新 session:掃描 codebase 結構並讀取 README,快速建立專案 context。適合在陌生 repo 或新 session 開始時使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.5 KB |
SKILL.md
View on GitHub---
name: prime
description: 冷啟新 session:掃描 codebase 結構並讀取 README,快速建立專案 context。適合在陌生 repo 或新 session 開始時使用。
disable-model-invocation: true
context: fork
---
# Prime — 冷啟 Context Loading
## 觸發條件
- 新 session 開始,需要快速了解一個不熟悉的 codebase
- 接手他人專案或剛 clone 的 repo
- 從 `/clear` 或 `/compact` 後重新建立 context
## 執行步驟
1. **掃描 git 追蹤的檔案結構**
```bash
git ls-files | head -80
```
2. **取得目錄樹概覽**
```bash
find . -type f -not -path './.git/*' -not -path './node_modules/*' | head -60 | sort
```
3. **讀取專案文件**(按優先順序)
- `@README.md`(若存在)
- `@CLAUDE.md`(若存在)
- `@.claude/REFERENCES.md`(若存在)
4. **產出 Context 摘要**,包含:
- 專案目的(1-2 句)
- 技術棧
- 主要模組/目錄說明
- 下一步建議(適合開始什麼工作)
## 針對本 workspace 的額外步驟
若在 `claude-code-workspace` 中執行,額外讀取:
- `.claude/rules/` 目錄列表(了解現有規則)
- `.claude/skills/` 目錄列表(了解現有 skills)
- `.claude/agents/` 目錄列表(了解現有 agents)
- `scripts/healthcheck.sh` 提示可執行健康檢查
## Gotcha
- **不要** 讀取超過 3 個文件全文,優先讀入 README + CLAUDE.md 即可
- 若 README 超過 200 行,只讀前 80 行摘要
- context 摘要長度控制在 ≤300 字,避免佔用過多 context budget
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |