文章目录
-
- 一、源地址链接
- 二、为什么要重构工作流
- 三、最终目录结构
- [四、Codex skills 怎么组织](#四、Codex skills 怎么组织)
- 五、三个工具分别负责什么
-
- [1. Headroom:长上下文和 Token 节省](#1. Headroom:长上下文和 Token 节省)
- [2. Scrapling:网页抓取和动态页面](#2. Scrapling:网页抓取和动态页面)
- [3. Archify:架构图和工作流图](#3. Archify:架构图和工作流图)
- 六、推荐的日常工作流
- 七、交付检查清单
- 八、总结
一、源地址链接
| 工具 | 源地址 | 本地定位 |
|---|---|---|
| Headroom | https://github.com/headroomlabs-ai/headroom.git | Token 节省、上下文压缩、代理转发 |
| Scrapling | https://github.com/D4Vinci/Scrapling.git | 网页抓取、动态浏览器抓取、爬虫框架 |
| Archify | https://github.com/tt-a1i/archify.git | 架构图、流程图、交互式 HTML 图谱 |
二、为什么要重构工作流
以前的问题不是工具不能用,而是安装位置和调用边界容易混在一起:工具源码、运行环境、浏览器组件、Codex Skill 入口都放散了以后,后续交付、复查、迁移都会变麻烦。
这次重构的目标是把三类东西拆清楚:
| 层级 | 作用 | 存放位置 |
|---|---|---|
| 工具运行层 | 放源码、虚拟环境、浏览器组件、启动脚本 | D:\ProgramData\AI\_Agent\Support\_Skill |
| Codex 路由层 | 放轻量 Skill,让 Codex 知道什么时候用哪个工具 | C:\Users\LENOVO\.codex\skills |
| 项目协作层 | 放每个项目自己的规则、测试命令、交付说明 | 项目根目录的 AGENTS.md |
这样做之后,Codex 不需要在每次任务里重新猜路径,也不会把工具运行时塞进技能目录。
三、最终目录结构
#mermaid-svg-YQSdnvUUVNlFkrJH{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-YQSdnvUUVNlFkrJH .error-icon{fill:#552222;}#mermaid-svg-YQSdnvUUVNlFkrJH .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-YQSdnvUUVNlFkrJH .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-YQSdnvUUVNlFkrJH .marker{fill:#333333;stroke:#333333;}#mermaid-svg-YQSdnvUUVNlFkrJH .marker.cross{stroke:#333333;}#mermaid-svg-YQSdnvUUVNlFkrJH svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-YQSdnvUUVNlFkrJH p{margin:0;}#mermaid-svg-YQSdnvUUVNlFkrJH .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-YQSdnvUUVNlFkrJH .cluster-label text{fill:#333;}#mermaid-svg-YQSdnvUUVNlFkrJH .cluster-label span{color:#333;}#mermaid-svg-YQSdnvUUVNlFkrJH .cluster-label span p{background-color:transparent;}#mermaid-svg-YQSdnvUUVNlFkrJH .label text,#mermaid-svg-YQSdnvUUVNlFkrJH span{fill:#333;color:#333;}#mermaid-svg-YQSdnvUUVNlFkrJH .node rect,#mermaid-svg-YQSdnvUUVNlFkrJH .node circle,#mermaid-svg-YQSdnvUUVNlFkrJH .node ellipse,#mermaid-svg-YQSdnvUUVNlFkrJH .node polygon,#mermaid-svg-YQSdnvUUVNlFkrJH .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-YQSdnvUUVNlFkrJH .rough-node .label text,#mermaid-svg-YQSdnvUUVNlFkrJH .node .label text,#mermaid-svg-YQSdnvUUVNlFkrJH .image-shape .label,#mermaid-svg-YQSdnvUUVNlFkrJH .icon-shape .label{text-anchor:middle;}#mermaid-svg-YQSdnvUUVNlFkrJH .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-YQSdnvUUVNlFkrJH .rough-node .label,#mermaid-svg-YQSdnvUUVNlFkrJH .node .label,#mermaid-svg-YQSdnvUUVNlFkrJH .image-shape .label,#mermaid-svg-YQSdnvUUVNlFkrJH .icon-shape .label{text-align:center;}#mermaid-svg-YQSdnvUUVNlFkrJH .node.clickable{cursor:pointer;}#mermaid-svg-YQSdnvUUVNlFkrJH .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-YQSdnvUUVNlFkrJH .arrowheadPath{fill:#333333;}#mermaid-svg-YQSdnvUUVNlFkrJH .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-YQSdnvUUVNlFkrJH .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-YQSdnvUUVNlFkrJH .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-YQSdnvUUVNlFkrJH .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-YQSdnvUUVNlFkrJH .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-YQSdnvUUVNlFkrJH .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-YQSdnvUUVNlFkrJH .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-YQSdnvUUVNlFkrJH .cluster text{fill:#333;}#mermaid-svg-YQSdnvUUVNlFkrJH .cluster span{color:#333;}#mermaid-svg-YQSdnvUUVNlFkrJH div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-YQSdnvUUVNlFkrJH .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-YQSdnvUUVNlFkrJH rect.text{fill:none;stroke-width:0;}#mermaid-svg-YQSdnvUUVNlFkrJH .icon-shape,#mermaid-svg-YQSdnvUUVNlFkrJH .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-YQSdnvUUVNlFkrJH .icon-shape p,#mermaid-svg-YQSdnvUUVNlFkrJH .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-YQSdnvUUVNlFkrJH .icon-shape .label rect,#mermaid-svg-YQSdnvUUVNlFkrJH .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-YQSdnvUUVNlFkrJH .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-YQSdnvUUVNlFkrJH .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-YQSdnvUUVNlFkrJH :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} D:\ProgramData\AI\_Agent\Support\_Skill
Headroom-main
Scrapling-main
Archify
.venv
run-headroom.ps1
run-python.ps1
README-local.md
.venv
browsers
run-scrapling.ps1
run-python.ps1
run-mcp.ps1
README-local.md
archify
SKILL.md
README-local.md
D:\ProgramData\Headroom 和 D:\ProgramData\Scrapling 不再作为安装位置使用,避免客户或协作者看到根目录下散落的工具目录。
四、Codex skills 怎么组织
Codex 的技能目录保留为轻量入口:
#mermaid-svg-s9N5MBtNzYRE371w{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-s9N5MBtNzYRE371w .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-s9N5MBtNzYRE371w .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-s9N5MBtNzYRE371w .error-icon{fill:#552222;}#mermaid-svg-s9N5MBtNzYRE371w .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-s9N5MBtNzYRE371w .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-s9N5MBtNzYRE371w .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-s9N5MBtNzYRE371w .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-s9N5MBtNzYRE371w .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-s9N5MBtNzYRE371w .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-s9N5MBtNzYRE371w .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-s9N5MBtNzYRE371w .marker{fill:#333333;stroke:#333333;}#mermaid-svg-s9N5MBtNzYRE371w .marker.cross{stroke:#333333;}#mermaid-svg-s9N5MBtNzYRE371w svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-s9N5MBtNzYRE371w p{margin:0;}#mermaid-svg-s9N5MBtNzYRE371w .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-s9N5MBtNzYRE371w .cluster-label text{fill:#333;}#mermaid-svg-s9N5MBtNzYRE371w .cluster-label span{color:#333;}#mermaid-svg-s9N5MBtNzYRE371w .cluster-label span p{background-color:transparent;}#mermaid-svg-s9N5MBtNzYRE371w .label text,#mermaid-svg-s9N5MBtNzYRE371w span{fill:#333;color:#333;}#mermaid-svg-s9N5MBtNzYRE371w .node rect,#mermaid-svg-s9N5MBtNzYRE371w .node circle,#mermaid-svg-s9N5MBtNzYRE371w .node ellipse,#mermaid-svg-s9N5MBtNzYRE371w .node polygon,#mermaid-svg-s9N5MBtNzYRE371w .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-s9N5MBtNzYRE371w .rough-node .label text,#mermaid-svg-s9N5MBtNzYRE371w .node .label text,#mermaid-svg-s9N5MBtNzYRE371w .image-shape .label,#mermaid-svg-s9N5MBtNzYRE371w .icon-shape .label{text-anchor:middle;}#mermaid-svg-s9N5MBtNzYRE371w .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-s9N5MBtNzYRE371w .rough-node .label,#mermaid-svg-s9N5MBtNzYRE371w .node .label,#mermaid-svg-s9N5MBtNzYRE371w .image-shape .label,#mermaid-svg-s9N5MBtNzYRE371w .icon-shape .label{text-align:center;}#mermaid-svg-s9N5MBtNzYRE371w .node.clickable{cursor:pointer;}#mermaid-svg-s9N5MBtNzYRE371w .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-s9N5MBtNzYRE371w .arrowheadPath{fill:#333333;}#mermaid-svg-s9N5MBtNzYRE371w .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-s9N5MBtNzYRE371w .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-s9N5MBtNzYRE371w .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-s9N5MBtNzYRE371w .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-s9N5MBtNzYRE371w .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-s9N5MBtNzYRE371w .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-s9N5MBtNzYRE371w .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-s9N5MBtNzYRE371w .cluster text{fill:#333;}#mermaid-svg-s9N5MBtNzYRE371w .cluster span{color:#333;}#mermaid-svg-s9N5MBtNzYRE371w div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-s9N5MBtNzYRE371w .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-s9N5MBtNzYRE371w rect.text{fill:none;stroke-width:0;}#mermaid-svg-s9N5MBtNzYRE371w .icon-shape,#mermaid-svg-s9N5MBtNzYRE371w .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-s9N5MBtNzYRE371w .icon-shape p,#mermaid-svg-s9N5MBtNzYRE371w .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-s9N5MBtNzYRE371w .icon-shape .label rect,#mermaid-svg-s9N5MBtNzYRE371w .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-s9N5MBtNzYRE371w .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-s9N5MBtNzYRE371w .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-s9N5MBtNzYRE371w :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} junction
C:\Users\LENOVO\.codex\skills
03-code-engineering
AI代理工具工作流
写代码的一些规范文章工具
CLI代理体验规模化
AI代理工具工作流
其中 AI代理工具工作流 负责记录:
- 三个工具的本地安装路径;
- 每个工具什么时候使用;
- 常用启动命令;
- 写博文时的源地址表格和目录结构。
.codex\skills 不放大型 .venv、浏览器二进制或完整运行时,只做"让 Codex 会用工具"的入口。
五、三个工具分别负责什么
1. Headroom:长上下文和 Token 节省
Headroom 适合处理长日志、长工具输出、重复上下文、代理转发和 Codex 包装启动。
常用命令:
powershell
D:\ProgramData\AI\_Agent\Support\_Skill\Headroom-main\run-headroom.ps1 --version
D:\ProgramData\AI\_Agent\Support\_Skill\Headroom-main\run-headroom.ps1 proxy --port 8787
D:\ProgramData\AI\_Agent\Support\_Skill\Headroom-main\run-headroom.ps1 wrap codex
推荐用法:
| 场景 | 操作 |
|---|---|
| 长任务、日志很多、上下文爆炸 | 用 wrap codex 启动 |
| OpenAI/Anthropic 兼容客户端统一代理 | 用 proxy --port 8787 |
| 普通代码小修 | 不必开启,避免额外链路 |
2. Scrapling:网页抓取和动态页面
Scrapling 适合网页解析、动态页面抓取、反爬场景调研和浏览器自动化采集。
常用命令:
powershell
D:\ProgramData\AI\_Agent\Support\_Skill\Scrapling-main\run-scrapling.ps1 --version
D:\ProgramData\AI\_Agent\Support\_Skill\Scrapling-main\run-scrapling.ps1 shell
D:\ProgramData\AI\_Agent\Support\_Skill\Scrapling-main\run-mcp.ps1 --help
动态抓取建议显式指定内置无头浏览器壳:
python
from scrapling.fetchers import DynamicFetcher
browser = r"D:\ProgramData\AI\_Agent\Support\_Skill\Scrapling-main\browsers\chromium_headless_shell-1243\chrome-headless-shell-win64\chrome-headless-shell.exe"
page = DynamicFetcher.fetch("https://example.com", headless=True, executable_path=browser)
print(page.css("h1::text").get())
3. Archify:架构图和工作流图
Archify 是 Agent Skill,不是普通 Python 包。它的核心入口是:
powershell
D:\ProgramData\AI\_Agent\Support\_Skill\Archify\archify\SKILL.md
推荐用法:
| 场景 | 产出 |
|---|---|
| 分析仓库结构 | 交互式架构图 HTML |
| 解释 API 调用链 | sequence 图 |
| 说明部署或审批过程 | workflow 图 |
| 展示数据管道 | dataflow 图 |
六、推荐的日常工作流
#mermaid-svg-rzzy2GmGLu1m4OZ2{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .error-icon{fill:#552222;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .marker.cross{stroke:#333333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 p{margin:0;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .cluster-label text{fill:#333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .cluster-label span{color:#333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .cluster-label span p{background-color:transparent;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .label text,#mermaid-svg-rzzy2GmGLu1m4OZ2 span{fill:#333;color:#333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .node rect,#mermaid-svg-rzzy2GmGLu1m4OZ2 .node circle,#mermaid-svg-rzzy2GmGLu1m4OZ2 .node ellipse,#mermaid-svg-rzzy2GmGLu1m4OZ2 .node polygon,#mermaid-svg-rzzy2GmGLu1m4OZ2 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .rough-node .label text,#mermaid-svg-rzzy2GmGLu1m4OZ2 .node .label text,#mermaid-svg-rzzy2GmGLu1m4OZ2 .image-shape .label,#mermaid-svg-rzzy2GmGLu1m4OZ2 .icon-shape .label{text-anchor:middle;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .rough-node .label,#mermaid-svg-rzzy2GmGLu1m4OZ2 .node .label,#mermaid-svg-rzzy2GmGLu1m4OZ2 .image-shape .label,#mermaid-svg-rzzy2GmGLu1m4OZ2 .icon-shape .label{text-align:center;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .node.clickable{cursor:pointer;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .arrowheadPath{fill:#333333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-rzzy2GmGLu1m4OZ2 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-rzzy2GmGLu1m4OZ2 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-rzzy2GmGLu1m4OZ2 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .cluster text{fill:#333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .cluster span{color:#333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-rzzy2GmGLu1m4OZ2 rect.text{fill:none;stroke-width:0;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .icon-shape,#mermaid-svg-rzzy2GmGLu1m4OZ2 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .icon-shape p,#mermaid-svg-rzzy2GmGLu1m4OZ2 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .icon-shape .label rect,#mermaid-svg-rzzy2GmGLu1m4OZ2 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-rzzy2GmGLu1m4OZ2 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-rzzy2GmGLu1m4OZ2 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-rzzy2GmGLu1m4OZ2 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 长上下文/省 Token
网页抓取/动态页面
架构图/流程图
普通代码任务
用户提出任务
任务类型
Headroom
Scrapling
Archify
Codex 直接处理
项目交付
建议顺序:
- 先让 Codex 识别任务类型。
- 如果是长上下文任务,再开 Headroom。
- 如果是网页信息获取,再用 Scrapling。
- 如果需要对客户解释结构,再用 Archify 输出交互图。
- 每个项目根目录补
AGENTS.md,写清楚构建、测试、禁区和交付规则。
七、交付检查清单
| 检查项 | 标准 |
|---|---|
| 安装路径 | 所有工具位于 D:\ProgramData\AI\_Agent\Support\_Skill |
| Codex 入口 | .codex\skills 只放轻量 Skill 或 junction |
| Headroom | run-headroom.ps1 --version 正常 |
| Scrapling | run-scrapling.ps1 --version 正常 |
| Scrapling 浏览器 | 动态抓取能启动内置无头浏览器 |
| Archify | archify\SKILL.md 存在 |
| 博文资料 | 第一栏包含源地址链接 |
八、总结
你每次开机不用全启动。你现在这套东西分成"常驻要打开"和"有任务才启动"两类。
每天开机只做这 3 步
- 打开 Codex
它会自动读:
C:\Users\LENOVO\.codex\skills
不用手动启动 skill。
- 进入你的项目目录
比如:
powershell
cd C:\Users\LENOVO\Documents\Project_Chen
如果要同步技能仓库:
powershell
cd C:\Users\LENOVO\Documents\Project_Chen\My_Skills_Collection
git pull
- 今天要干什么,再决定开哪个工具
平时写代码、写文章、整理 skill:不用启动 Headroom / Scrapling / Archify。
什么时候启动什么
| 你今天要做什么 | 需要启动 |
|---|---|
| 普通写代码、改项目、写博文 | 只开 Codex |
| 长文档、长日志、上下文很大 | 用 Headroom |
| 爬网站、抓页面、动态网页 | 用 Scrapling |
| 画架构图、流程图、调用链图 | 用 Archify skill |
| 同步技能到 GitHub | 进入 My_Skills_Collection 后 git pull / git push |
常用命令
检查 Headroom:
powershell
D:\ProgramData\AI\_Agent\Support\_Skill\Headroom-main\run-headroom.ps1 --version
检查 Scrapling:
powershell
D:\ProgramData\AI\_Agent\Support\_Skill\Scrapling-main\run-scrapling.ps1 --version
如果要开 Headroom 代理:
powershell
D:\ProgramData\AI\_Agent\Support\_Skill\Headroom-main\run-headroom.ps1 proxy --port 8787
一句话记住:
开机先开 Codex,进项目目录;只有遇到长上下文才开 Headroom,遇到网页抓取才开 Scrapling,遇到画图才用 Archify。