dyz-gongwen-skills
公文写作 Skills|AI 公文写作助手:防编造、守保密、GB/T 9704 一键排版,覆盖 22 种文书,支持 Claude Code / Codex / Cursor
翻译准备中
尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
Agent Skill that builds, tests and publishes ExtractHub web data extractors (Claude Code, Claude Desktop, other agents)
翻译准备中
正在加载完整 README。
查看完整 README ↗An Agent Skill that teaches an AI agent to build ExtractHub extractors: it inspects the page you name, picks the cheapest fetch mode that works (plain HTML, embedded JSON, JSON API, JavaScript rendering, XHR capture, browser actions), writes the extractor definition, validates it, uploads it as a private draft, tests it and releases it when you say so.
Ask your agent things like:
For multi-step scrapes (a list page, then every detail page it links to) use it together with the extracthub-pipeline-builder skill, which chains released extractors into a pipeline.
extracthub-extractor-builder/
├── SKILL.md workflow the agent follows
├── references/
│ ├── config-reference.md field shapes, extract types, JSON paths, all transforms
│ ├── request-options.md proxy, JS rendering, browser actions, XHR, POST, price tiers, Studio import
│ ├── selectors-and-pitfalls.md supported selectors, stable selector strategy, engine pitfalls
│ ├── troubleshooting.md empty fields, blocked pages, JS-only content, API errors
│ └── releasing-and-versions.md draft, pins (@1, @1.2.3, @draft), semver, visibility
├── examples/ 6 complete definitions + notes
├── schema/extractor-definition.schema.json
├── scripts/check-config.mjs zero-dependency structure checker (Node 18+)
├── scripts/validate.mjs dry run on a saved sample file with the real engine (needs an API key)
└── LICENSE MIT
Clone the repository into your personal skills directory (all projects) or a project's .claude/skills/:
git clone https://github.com/extracthub-io/extracthub-extractor-builder.git ~/.claude/skills/extracthub-extractor-builder
Claude Code picks it up automatically; ask for an ExtractHub extractor and it loads the skill. Update later
with git -C ~/.claude/skills/extracthub-extractor-builder pull.
Download the repository as a ZIP (Code → Download ZIP) or zip a clone so that the zip contains one folder
with SKILL.md inside:
git clone https://github.com/extracthub-io/extracthub-extractor-builder.git
zip -r extracthub-extractor-builder.zip extracthub-extractor-builder -x "*.git*"
Upload it under Settings → Capabilities → Skills (code execution must be enabled). The local checker needs Node.js; where Node is unavailable the agent validates with the MCP server or by reading the HTML.
Agents that support the Agent Skills format load the folder from their skills directory. For any other
agent, point it at SKILL.md as instructions and keep the folder next to it so it can open the references.
With the MCP server the agent can validate against the real engine, upload, test and release by itself. Without it, the agent gives you the definition and a Studio import file instead.
https://api.extracthub.io/mcp, key as a Bearer token):Claude Code:
claude mcp add --transport http extracthub https://api.extracthub.io/mcp --header "Authorization: Bearer YOUR_EXTRACTHUB_API_KEY"
Claude Code, one key for both the MCP server and scripts/validate.mjs (recommended): put the key in
.claude/settings.local.json (keep it out of git) and reference it from the project's .mcp.json:
// .claude/settings.local.json
{ "env": { "EXTRACTHUB_API_KEY": "YOUR_EXTRACTHUB_API_KEY" }, "enabledMcpjsonServers": ["extracthub"] }
// .mcp.json
{ "mcpServers": { "extracthub": { "type": "http", "url": "https://api.extracthub.io/mcp",
"headers": { "Authorization": "Bearer ${EXTRACTHUB_API_KEY}" } } } }
Restart Claude Code; /mcp should list extracthub as connected.
Claude Desktop (claude_desktop_config.json, through the mcp-remote bridge):
{
"mcpServers": {
"extracthub": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.extracthub.io/mcp", "--header", "Authorization:${EXTRACTHUB_AUTH}"],
"env": { "EXTRACTHUB_AUTH": "Bearer YOUR_EXTRACTHUB_API_KEY" }
}
}
}
Other clients: URL https://api.extracthub.io/mcp, transport Streamable HTTP, header
Authorization: Bearer YOUR_EXTRACTHUB_API_KEY (or X-API-Key: YOUR_EXTRACTHUB_API_KEY). The server does
not offer OAuth yet, so clients that only support OAuth connectors cannot connect; use the skill without MCP
there.
More: https://extracthub.io/mcp
exth_test_...) are free and never fetch pages: extract calls return simulated results. Good
for wiring up a pipeline; useless for checking whether selectors work.以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗