/sjh-skills:init-projectfrom sjh-skills
初始化新项目的Claude Code最佳实践配置:生成目录骨架、AGENTS.md填充、可选研究型profile覆盖。首次搭建项目时使用。
Ships in sjh-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Automatically configure Claude Code best practices for new projects: directory skeleton, general-purpose agents, hooks, and AGENTS.md (with CLAUDE.md as a thin @AGENTS.md stub).
Phase 1: Generate Skeleton (deterministic script)
→ Run scripts/init-skeleton.sh to create directory structure + boilerplate files
→ Output which files were created
Phase 2: Interactive AGENTS.md Fill (LLM + AskUserQuestion)
→ Process <!-- init-project: 待填充 --> placeholders section by section
→ For each section: read codebase → generate draft → AskUserQuestion to confirm → write
→ User can reply "skip" to skip any section
→ CLAUDE.md is just a stub (@AGENTS.md + write-routing rule); never edited in Phase 2
→ Detailed guide templates in details/agents-md-sections.md
Phase 3: Profile Overlay (optional)
→ AskUserQuestion: "Want to overlay an additional profile? Currently supported: research"
→ If research selected → run scripts/init-research-profile.sh
→ Profile details in details/research-profile.md
Output Summary → List all generated/modified files → Suggest next steps: review content, git add, start developing
| Section | Auto-exploration | User prompt |
|---|---|---|
| Project overview | Read README, pyproject.toml, package.json | "One-line description of this project's core goal?" |
| Models / Key dependencies | Detect imports, API keys, model configs | "What models or external services does this project depend on?" |
| Directory structure | ls + read key file docstrings | "Does this directory layout look correct? Anything to adjust?" |
| Dev workflow | Detect CI, Makefile, scripts/ | "Use the default brainstorming→plans→dev→verify flow?" |
| Dev guide | Detect venv, .env, Dockerfile | "Any special environment setup steps?" |
| Context Loading (routing table) | List .claude/rules/*.md + scan opening summaries | "Confirm (task domain → rule) mapping — entry point for Codex / external agents" |
| Always Do (project-specific) | Read rules/, lint config | "Any cross-module consistency requirements?" |
| Ask First | Scan core files (interfaces, config) | "Which files/dirs require confirmation before modifying?" |
| Never Do | Detect third_party/, .env | "Any absolute don't-touch conventions?" |
| Progressive disclosure setup | Scan docs/knowledge/ + .claude/rules/ | Ensure rules reference knowledge files inline; ask about missing refs |
<!-- init-project: 待填充 --> placeholders are touchedinit-skeleton.sh and init-research-profile.sh work independently of the skilldetails/skeleton-manifest.mddetails/agents-md-sections.mddetails/agent-templates.mddetails/research-profile.mdREADME.md (opens in a new tab)README.zh-CN.md (opens in a new tab)details/agent-templates.md (opens in a new tab)details/agents-md-sections.md (opens in a new tab)details/research-profile.md (opens in a new tab)details/skeleton-manifest.md (opens in a new tab)scripts/init-research-profile.sh (opens in a new tab)scripts/init-skeleton.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/bibtex-fetchFetch BibTeX entries from arXiv / Semantic Scholar. Triggers: 'fetch bibtex', 'cite this paper', 'arXiv bibtex', '拉 bibtex', '获取引用', '引用这篇论文'. Not for citation format conversion (APA/MLA) or literature review./context-auditAudit project context management (CLAUDE.md, rules, knowledge) for progressive disclosure compliance. Checks that all knowledge files are reachable from rules, detects stale references, orphaned files, and CLAUDE.md index leakage. Triggers: 'audit context', 'check context', 'context hygiene', 'context audit', '检查 context', '审计上下文', 'knowledge 覆盖检查'. NOT for: code review, rule content correctness, or knowledge content quality./daily-summaryProduce daily/yesterday work summary (日报) by aggregating Claude Code sessions, Git commits, and Notion task data — git log alone cannot do this. Args: today (default), yesterday, 24h, YYYY-MM-DD. Triggers: 'daily summary', 'what did I do today', 'yesterday summary', '日报', '今天干了什么', '工作总结', '某天做了什么'. Not for weekly reports or summarizing files./experiment-registryManage ML experiment lifecycle via structured YAML registry — register, record results, compare runs, track status. Triggers: 'register experiment', 'compare experiments', 'experiment results', 'exp init', 'exp list', '注册实验', '对比实验', '查实验', '哪个实验最好', '记录结果'. Not for training monitoring, checkpoints, or launching jobs./handoffGenerate a structured handoff summary for the next session. Triggered when user says "handoff", "交接", or "写个交接"./notion-lifeosUser's personal Notion LifeOS (PARA: tasks, notes, projects, Make Time journals) with pre-configured DB IDs + API access — required for any LifeOS interaction. Use for adding tasks, taking notes, journaling, querying todos, searching notes, creating projects, reflection. Triggers: 'add task', 'take a note', 'what do I need to do', 'search my notes', '加个任务', '查笔记', '待办', '记录想法', '反思', '目标偏移'. Not for Notion API docs or workspace admin.npx claudepluginhub jiahao-shao1/sjh-skills --plugin sjh-skillsOther plugins' skills for the same job