mirror of
https://github.com/anthropics/claude-quickstarts.git
synced 2026-12-02 08:29:22 +08:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
claude-quickstarts 镜像同步记录与项目分析
维护说明:本页由
gitea-mirror-wiki技能生成(2026-12-02 00:05),记录该仓库在 GPD Gitea 的镜像状态与代码速览。Wiki 属于本地维护内容,不来自上游,也不受 8 小时同步影响。
一、仓库概况
| 项目 | 值 |
|---|---|
| 上游 | https://github.com/anthropics/claude-quickstarts.git |
| 本地镜像 | http://192.168.1.99:3000/jarod/claude-quickstarts |
| 公网入口 | https://git.lxj.ai/jarod/claude-quickstarts |
| 状态 | 活跃镜像(8 小时自动同步) |
| 默认分支 | main |
| 仓库大小 | 约 15.0 MB(DB 15679608 字节;裸仓约 15409 KB) |
| refs | 11 分支 / 0 标签 / HEAD 历史 118 提交 |
| 建立时间 | 2026-12-02 00:00:06 |
| 描述 | Mirror of anthropics/claude-quickstarts: a collection of quickstart projects for building deployable apps with the Claude API (includes managed-agents/knowledge-wiki). |
二、同步过程与当前状态
本次同步实测
| 项目 | 结果 |
|---|---|
| 用户链接 | https://github.com/anthropics/claude-quickstarts/tree/main/managed-agents/knowledge-wiki(子目录,镜像按整仓处理) |
| 上游 | https://github.com/anthropics/claude-quickstarts.git |
| 迁移请求 | POST /api/v1/repos/migrate,mirror=true、8h0m0s、private=false、origin 指向官方 GitHub |
| HTTP 状态 / 耗时 | 201 Created / 客户端 8.3s(服务端日志 8196.1ms) |
| 仓库 id | 53 |
| API 复核 | mirror=true、empty=false、size=15252 KB、default_branch=main;SQLite status=0、is_empty=0、size=15618739 字节 |
| 裸仓 | /opt/gitea/data/git/repositories/jarod/claude-quickstarts.git,16M,单 pack 14.71 MiB,属主 jarod:jarod |
| HEAD | refs/heads/main -> 4a4224bdf0e9cfb3332167b69c90457403813625(与上游 git ls-remote 一致) |
| origin | https://github.com/anthropics/claude-quickstarts.git(fetch/push 均指向官方) |
| refs | 11 分支 / 0 标签 / 473 全 refs / 1181 提交 |
| git fsck | 通过,无 error(仅 pack .rev 索引文件的 garbage 提示,属正常) |
| mirror-sync | POST /api/v1/repos/jarod/claude-quickstarts/mirror-sync → 200(76.4ms) |
| 8h 排期 | updated 2026-12-02 00:01:47 → next 2026-12-02 08:01:47,interval 8.00h,enable_prune=1 |
| 容器日志 | 2026/12/02 00:00:13 completed POST /api/v1/repos/migrate for 192.168.1.6, 201 Created in 8196.1ms |
| 校验结论 | 全部通过;写 Wiki 不影响主裸仓 HEAD 与 mirror 排期 |
当前校验状态
| 检查项 | 结果 |
|---|---|
is_mirror / is_empty |
1 / 0 |
| HEAD | refs/heads/main → 4a4224b |
| remote.origin.url | https://github.com/anthropics/claude-quickstarts.git |
| remote.origin.fetch | +refs/*:refs/* / +refs/tags/*:refs/tags/* |
| 自动同步排期 | updated 2026-12-02 00:01:47 → next 2026-12-02 08:01:47 |
页面验证:
GET /jarod/claude-quickstarts/wiki返回 200 即表示 Wiki 裸仓已被 Gitea 正确识别。
三、项目功能速览
README 来源:README.md
# Claude Quickstarts
Claude Quickstarts is a collection of projects designed to help developers quickly get started with building applications using the Claude API. Each quickstart provides a foundation that you can easily build upon and customize for your specific needs.
## Getting Started
To use these quickstarts, you'll need an Claude API key. If you don't have one yet, you can sign up for free at [console.anthropic.com](https://console.anthropic.com).
## Available Quickstarts
### Customer Support Agent
A customer support agent powered by Claude. This project demonstrates how to leverage Claude's natural language understanding and generation capabilities to create an AI-assisted customer support system with access to a knowledge base.
[Go to Customer Support Agent Quickstart](./customer-support-agent)
### Financial Data Analyst
A financial data analyst powered by Claude. This project demonstrates how to leverage Claude's capabilities with interactive data visualization to analyze financial data via chat.
[Go to Financial Data Analyst Quickstart](./financial-data-analyst)
### Computer Use Demo
An environment and tools that Claude can use to control a desktop computer. This project demonstrates how to leverage the computer use capabilities of Claude, including support for the latest `computer_toolset_20260801` toolset shape, where each computer action is a member tool the model calls by na
[Go to Computer Use Demo Quickstart](./computer-use-demo)
检出的技术栈 / 构建信号:GitHub Actions CI、Python(pip)、Node.js / 前端(npm)、TypeScript、Docker 镜像、Docker Compose、Python(setuptools)、Python(现代构建)、npm 锁文件、Make 构建
顶层目录:.github、(根目录)、agents、autonomous-coding、browser-toolset、browser-use-demo、computer-toolset、computer-use-best-practices、computer-use-demo、customer-support-agent、financial-data-analyst、managed-agents
四、代码功能与安全简析(人工复核)
claude-quickstarts 代码功能与安全简析(人工复核)
- 镜像范围说明:用户给的是子目录
managed-agents/knowledge-wiki的链接;Gitea 镜像只能整仓克隆,故本仓为anthropics/claude-quickstarts全量镜像(MIT,Python 为主,含 15+ 个 Claude API quickstart:customer-support-agent、financial-data-analyst、computer-use-demo、browser-use-demo、autonomous-coding 及 managed-agents/* 等)。 - 关注子项目 knowledge-wiki:Anthropic 官方 Managed Agents(beta)教程,把 SEC EDGAR 的 M&A 尽调文档一次性蒸馏成带出处、保留冲突的 Markdown「知识维基」存入 memory store,之后 agent 只读挂载作答;README 称单次问答成本约为大模型直搜原文的 1/15。建库一次约 16–19 美元(core 档 8 份文件 / 2.8 MB / 23 分钟),约 240 次提问回本。
- 形态:核心是
distill_documents_into_knowledge_wiki.ipynb(每个 cell 自带真实运行输出,可纯阅读不跑)、prompts/四个 agent 提示、utilities.py;requirements.txt仅 anthropic>=2.0,<3、python-docx、pillow、python-dotenv、jupyter、openpyxl、python-pptx,无自建后端与数据库。 - 安全快检(裸仓只读 grep):
password/secret/token/api_key/private_key命中以ANTHROPIC_API_KEY环境变量读取、.env.example占位符和 token 计数变量名为主;CI 用${{ secrets.GITHUB_TOKEN }}标准引用;未发现硬编码真实密钥、私钥或 .pem/.key 文件(仅 18 个.env.example)。 - 正面点:
fetch_data_room.py拒绝非https://www.sec.gov/的 URL(白名单防越界抓取);外联仅 SEC EDGAR / data.sec.gov 与 Anthropic API;EDGAR_USER_AGENT需按 SEC 要求自行设置。 - 风险 1|提示注入面宽:全仓 24 个
CLAUDE.md/SKILL.md/skill.md,knowledge-wiki/CLAUDE.md明确要求 AI 代理读skill.md并按步骤 pip install、export 密钥、运行 notebook;用 Agent 打开该目录会被引导联网与消费 API,建议先人工通读再决定是否执行。 - 风险 2|真实云计费与数据上云:运行 notebook 会把文档上传至 Anthropic Managed Agents(beta)并按 list price 计费;
COOKBOOK_DOCS指向自有语料即把内部文档送云端。README 明确提醒 Office 文件属不可信输入,须在容器或隔离机转换;校园 / 内部资料勿直接投喂。 - 风险 3|示例权限面大:
computer-use-demo等示例涉及 Docker 挂载$HOME/.anthropic、开放 5900/6080 端口、浏览器与计算机操作;ANTHROPIC_API_KEY一旦泄露即产生账单。另有 README 自述的共享页约 5% 行被并发 agent 覆盖(设计取舍)。 - 结论:值得作为「带真实输出的教程」零成本阅读,尤其适合了解 agentic retrieval / 知识库蒸馏思路;实际跑通需组织已开通 Managed Agents、先设预算上限,并只在隔离环境用公开语料试,勿在办公机直接跑全仓示例。
五、代码安全快检(自动)
password|secret|token|api_key|private_key|access_key命中 1757 处;此类命中多为变量名、UI 文案或协议字段,需人工复核,不等于存在凭据泄露。- 敏感文件(
.env/*.pem/*.p12/ 私钥 / credentials 等):browser-use-demo/.env.example、computer-use-best-practices/.env.example、managed-agents/assistant-ui/.env.example、managed-agents/assistant-ui/.npmrc、managed-agents/chat-sdk/.env.example、managed-agents/copilot-kit-ag-ui/.env.example、managed-agents/daily-brief/.env.example、managed-agents/linear/.env.example、managed-agents/mcp-server-typescript/.env.example、managed-agents/roadtrip-planner/.env.example - 硬编码 PEM 私钥:未检出
- 危险脚本模式(
curl|bash/eval/base64 -d/chmod 777):命中 3 处,需复核
六、风险提示
- 自动快检只覆盖常见模式,不替代人工审计;部署前核对依赖来源、锁文件与 CI 中的
${{ secrets.* }}用法。 - 远程控制 / Agent / 文件上传 / 解析外部文档类项目,优先放在内网隔离环境,避免直接暴露公网。
- 注意许可证(GPL / AGPL 等)对二次分发与闭源集成的约束。
七、维护约定
- Gitea 对
is_mirror=1的仓库禁止 Wiki API / UI 写入(POST .../wiki/pages返回 405),但读正常;本页由服务端直接维护<repo>.wiki.git裸仓。 - 更新方式:临时
chown -R root:root,用hash-object -w+mktree+commit-tree+update-ref提交,最后chown -R 1000:1000;root 直接git clone会触发dubious ownership。 - Wiki 是独立裸仓,8 小时
mirror-sync --prune只操作主裸仓,不会影响本页;删除并重建仓库会连带删除 Wiki,Gitea 迁移/备份时须单独带上.wiki.git。 - 每次人工发起的镜像同步完成后,按
gitea-mirror-wiki技能更新本页;后台自动同步不重复生成。