From db50af96137b3467af5998215ef15688bc4502d5 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:00:31 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 15 +++++++ README.md | 3 ++ hooks/hooks.json | 15 +++++++ plugin.lock.json | 53 +++++++++++++++++++++++ skills/official-docs/SKILL.md | 45 +++++++++++++++++++ skills/official-docs/reference/.gitignore | 2 + 6 files changed, 133 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 hooks/hooks.json create mode 100644 plugin.lock.json create mode 100644 skills/official-docs/SKILL.md create mode 100644 skills/official-docs/reference/.gitignore diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..8289e38 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,15 @@ +{ + "name": "claude-docs", + "description": "Auto-sync official Claude Code docs as a skill with fresh reference material", + "version": "1.0.0", + "author": { + "name": "basher83", + "email": "basher83@mail.spaceships.work" + }, + "skills": [ + "./skills" + ], + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..a06387f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# claude-docs + +Auto-sync official Claude Code docs as a skill with fresh reference material diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..28096cb --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,15 @@ +{ + "description": "Claude docs sync plugin hooks", + "hooks": { + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/claude_docs.py --format json" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..8418b22 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,53 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:basher83/lunar-claude:plugins/meta/claude-docs", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "300afece63c3579f11ca790b250169c0ea8912c1", + "treeHash": "3f209f178e993e934bfec292b93b78528395f638ce989518b526dcfdd1f294c3", + "generatedAt": "2025-11-28T10:14:11.654292Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "claude-docs", + "description": "Auto-sync official Claude Code docs as a skill with fresh reference material", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "914c54392e4713918cff5770bd5bc2aab189c881a1636db8d4a53bc67fccc351" + }, + { + "path": "hooks/hooks.json", + "sha256": "a75b05141891ee887fe930540f4b6b5167a29b3599e98d02d35af2258d8b1a69" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "f1de47c7867ca7e5d5babbaed07780537d45359257af49c0f7b08317eab8855f" + }, + { + "path": "skills/official-docs/SKILL.md", + "sha256": "88e6518b83538ed412541519cc3e860fd063a05a182e60b22d43fa37c7f316cd" + }, + { + "path": "skills/official-docs/reference/.gitignore", + "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d" + } + ], + "dirSha256": "3f209f178e993e934bfec292b93b78528395f638ce989518b526dcfdd1f294c3" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file diff --git a/skills/official-docs/SKILL.md b/skills/official-docs/SKILL.md new file mode 100644 index 0000000..fe59e8e --- /dev/null +++ b/skills/official-docs/SKILL.md @@ -0,0 +1,45 @@ +--- +name: official-docs +description: Official Claude Code documentation. Use when user asks about + plugins, skills, agents, hooks, commands, settings, or features. +--- + +# Claude Code Documentation + +Official documentation from docs.claude.com, auto-updated by the claude-docs plugin. + +## How to Use + +**Load only relevant files.** Start with the most specific topic, +expand if needed. Don't load all documentation at once. + +**Example:** For "How do I create a hook?", load hooks-guide.md +first, then hooks.md if more detail needed. + +## Reference Documentation + +### Plugin System + +- [plugins.md](./reference/plugins.md) - Plugin fundamentals and quickstart +- [plugins-reference.md](./reference/plugins-reference.md) - Complete technical specs and schemas +- [plugin-marketplaces.md](./reference/plugin-marketplaces.md) - Marketplace creation and management + +### Skills + +- [skills.md](./reference/skills.md) - Creating and managing Skills +- [agent-skills-overview.md](./reference/agent-skills-overview.md) - Architecture and principles +- [agent-skills-quickstart.md](./reference/agent-skills-quickstart.md) - Getting started +- [agent-skills-best-practices.md](./reference/agent-skills-best-practices.md) - Authoring guidelines + +### Commands & Automation + +- [slash-commands.md](./reference/slash-commands.md) - Command development +- [hooks-guide.md](./reference/hooks-guide.md) - Hook patterns and examples +- [hooks.md](./reference/hooks.md) - Hook types and configuration + +### Configuration + +- [settings.md](./reference/settings.md) - Configuration options +- [output-styles.md](./reference/output-styles.md) - Output formatting +- [statusline.md](./reference/statusline.md) - Status bar configuration +- [sub-agents.md](./reference/sub-agents.md) - Subagent capabilities diff --git a/skills/official-docs/reference/.gitignore b/skills/official-docs/reference/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/skills/official-docs/reference/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore