newscrawler
Extracts news and article content from sites such as WeChat public accounts, Toutiao, Netease, Tencent, BBC, CNN, Twitter/X and Quora, returning clean JSON or Markdown for Claude Code users.
Claude Code
$ npx -y skills add nanmicoder/skills-agent-proto --agent claude-code
Codex
$ npx skills add nanmicoder/skills-agent-proto -a codex
Cursor
$ npx skills add nanmicoder/skills-agent-proto -a cursor
Gemini CLI
$ npx skills add nanmicoder/skills-agent-proto -a gemini-cli
GitHub Copilot
$ npx skills add nanmicoder/skills-agent-proto -a github-copilot
OpenCode
$ npx skills add nanmicoder/skills-agent-proto -a opencode
Windsurf
$ npx skills add nanmicoder/skills-agent-proto -a windsurf

使用 LangChain 1.0 构建的 Skills Agent,演示 Skills 三层加载机制的底层原理。默认使用 Anthropic,也支持 OpenAI / OpenAI-compatible 接口。
git clone https://github.com/NanmiCoder/skills-agent-proto.git
cd skills-agent-proto
uv sync
默认文档仍以 Anthropic 为例;如果你使用接口AI 这类 OpenAI-compatible 代理,也可以切到 OpenAI 协议。
创建 .env 文件:
使用第三方代理中转, 我推荐使用 接口AI,注册绑定github得3刀试用券
MODEL_PROVIDER=anthropic
MODEL_NAME=claude-sonnet-4-5-20250929
MODEL_API_KEY=sk-xxx
MODEL_BASE_URL=https://api.jiekou.ai/anthropic
兼容旧配置,下面这些变量仍然可用:
ANTHROPIC_AUTH_TOKEN=sk-xxx
ANTHROPIC_BASE_URL=https://api.jiekou.ai/anthropic
CLAUDE_MODEL=claude-sonnet-4-5-20250929
如果你要切到 OpenAI 协议,把 provider、model 和 base URL 切过去即可。接口AI 示例:
MODEL_PROVIDER=openai
MODEL_NAME=gpt-5.4
MODEL_API_KEY=sk-xxx
MODEL_BASE_URL=https://api.jiekou.ai/openai
开启 OpenAI thinking 时,项目默认会走 Responses API,并自动把上面的 base URL 规范成 https://api.jiekou.ai/openai/v1,这样 gpt-5.4 的 reasoning 和 tool calling 可以同时工作。
也支持 OpenAI 专属变量:
OPENAI_API_KEY=sk-xxx
OPENAI_BASE_URL=https://api.jiekou.ai/openai
OPENAI_MODEL=gpt-5.4
OPENAI_REASONING_EFFORT=medium
如果你的代理只支持 chat/completions,可以显式关闭:
OPENAI_USE_RESPONSES_API=false
这种模式下 MODEL_BASE_URL / OPENAI_BASE_URL 可以填到兼容服务的 base 层级,例如 https://api.jiekou.ai/openai 或 https://api.jiekou.ai/openai/v1。如果误填到完整 endpoint,例如 .../v1/chat/completions,项目会自动裁剪回 SDK 需要的 .../v1,避免重复拼接路径。
uv run langchain-skills --interactive
启动后会显示当前实际使用的 provider:model,方便确认是否已经切到 OpenAI。
启动后可以观察到完整的三层加载过程:
✓ Discovered 6 skills
- tornado-erp-module-dev
- web-design-guidelines
- news-extractor
...
Skills 的 name + description 已注入 system prompt,模型知道有哪些能力可用。
You: 总结这篇文章 https://mp.weixin.qq.com/s/ohsU1xRrYu9xcVD7qu5lNw
● load_skill(news-extractor)
└ # Skill: news-extractor
## Instructions
从主流新闻平台提取文章内容...
用户请求匹配到 skill 描述,模型主动调用 load_skill 获取完整指令。
● Bash(uv run .../extract_news.py https://mp.weixin.qq.com/s/ohsU1xRrYu9xcVD7qu5lNw)
└ [OK]
[SUCCESS] Saved: output/xxx.md
模型根据指令执行脚本,脚本代码不进入上下文,只有输出进入。
# 交互式模式(推荐)
uv run langchain-skills --interactive
# 单次执行
uv run langchain-skills "列出当前目录"
# 禁用 Thinking(降低延迟;OpenAI 默认走标准流式输出)
uv run langchain-skills --no-thinking "执行 pwd"
# 查看发现的 Skills
uv run langchain-skills --list-skills
# 查看 System Prompt(Level 1 注入内容)
uv run langchain-skills --show-prompt
./start.sh
脚本会自动执行:
uv sync(后端依赖安装)web/npm install(前端依赖安装)uv run langchain-skills-web
等价命令:
uv run uvicorn langchain_skills.web_api:app --reload --port 8000
cd web
npm install
npm run dev
默认会连接 http://localhost:8000,如需修改:
VITE_API_BASE_URL=http://127.0.0.1:8000 npm run dev
thinking、tool_call、tool_result、text、done、errorload_skill 时,UI 会明确标记当前识别到的 skill/skills 显示可用技能列表/prompt 显示当前 system promptskills-agent-proto/
├── src/langchain_skills/
│ ├── agent.py # LangChain Agent (Anthropic/OpenAI provider routing)
│ ├── cli.py # CLI 入口 (流式输出)
│ ├── tools.py # 工具定义 (load_skill, bash, read_file, write_file, glob, grep, edit, list_dir)
│ ├── skill_loader.py # Skills 发现和加载
│ └── stream/ # 流式处理模块
│ ├── emitter.py # 事件发射器
│ ├── tracker.py # 工具调用追踪(支持增量 JSON)
│ ├── formatter.py # 结果格式化器
│ └── utils.py # 常量和工具函数
├── tests/ # 单元测试
│ ├── test_stream.py
│ ├── test_cli.py
│ └── test_tools.py
├── docs/ # 文档
│ ├── skill_introduce.md
│ └── langchain_agent_skill.md
└── .claude/skills/ # 示例 Skills
└── news-extractor/
├── SKILL.md
└── scripts/extract_news.py
| 层级 | 时机 | Token 消耗 | 内容 |
|---|---|---|---|
| Level 1 | 启动时 | ~100/Skill | YAML frontmatter (name, description) |
| Level 2 | 触发时 | <5000 | SKILL.md 完整指令 |
| Level 3 | 执行时 | 仅输出 | 脚本执行结果(代码不进上下文) |
uv run python -m pytest tests/ -v
| 变量 | 说明 | 默认值 |
|---|---|---|
MODEL_PROVIDER | 通用 provider,anthropic / openai | anthropic |
MODEL_NAME | 通用模型名 | claude-opus-4-5-20251101 |
MODEL_API_KEY | 通用 API Key / 平台 Token | 无 |
MODEL_BASE_URL | 通用 Base URL | 官方 API |
ANTHROPIC_AUTH_TOKEN | Anthropic 兼容旧配置 | 无 |
ANTHROPIC_BASE_URL | Anthropic Base URL | 官方 API |
CLAUDE_MODEL | Anthropic 兼容旧模型变量 | claude-opus-4-5-20251101 |
OPENAI_API_KEY | OpenAI API Key | 无 |
OPENAI_BASE_URL | OpenAI / 兼容接口 Base URL | 官方 API |
OPENAI_MODEL | OpenAI 模型名 | gpt-5-mini |
OPENAI_REASONING_EFFORT | OpenAI thinking 强度 | medium |
OPENAI_USE_RESPONSES_API | 是否使用 Responses API | true |
MAX_TOKENS | 最大输出 tokens | 16000 |
MODEL_TEMPERATURE | 模型温度 | 1.0 |
建议优先使用
MODEL_*通用变量;这样在 Anthropic 和 OpenAI 之间切换时只需要改 provider、model、base_url。
MIT
Extracts news and article content from sites such as WeChat public accounts, Toutiao, Netease, Tencent, BBC, CNN, Twitter/X and Quora, returning clean JSON or Markdown for Claude Code users.
A desktop workbench for Claude Code that runs many sessions side by side, with global search, branch and worktree launch, diff review, a built-in browser preview, and graphical approval of permissions. You can also choose the model and generate images from within it.
A personal AI assistant that runs on your own computer and answers through messaging channels such as Slack, Telegram and WhatsApp. Its skills cover browser automation, canvas panels, app previews and shareable diffs.
Gives your AI agent a learning loop: it turns past work into reusable skills, keeps notes across sessions, and searches its own earlier conversations. It can also run on a cheap server and be reached from chat apps like Telegram.
A single CLAUDE.md file with behavioral guidelines to reduce common LLM coding mistakes, such as overcomplication and unstated assumptions. It is derived from Andrej Karpathy's observations on coding pitfalls and helps Claude Code write, review, and refactor code more carefully.
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by running routine tasks, explaining complex code, and handling git workflows through natural language commands.
skills-agent-proto is indexed on Flowy in the AI & Agents category. Install it with the command on its page. It includes news-extractor. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it