By strzhao
npm 发布与 GitHub Actions CI/CD 配置工具包。包含 OIDC trusted publishing 自动发布、安全最佳实践、发布自动化工具选型和 GitHub Actions 工作流配置
npx claudepluginhub strzhao/autopilot --plugin npm-toolkit配置 GitHub Actions 工作流,包括 CI/CD 自动触发、构建、测试等。 当用户提到"配置 GitHub Actions"、"设置 CI/CD"、"添加 workflow"、"自动构建"、"自动测试"、 "github action 触发"、"workflow 配置"、"CI 流水线"、"持续集成"时使用此技能。 也适用于需要修改现有 workflow、排查 workflow 失败、或添加新的自动化流程的场景。
配置 npm 包通过 GitHub Actions 自动发布到 npmjs.com。使用 OIDC Trusted Publishing(无需 npm token)。 当用户提到"发布 npm"、"npm publish"、"配置 npm 自动发布"、"npm 包发布"、"设置 npm CI/CD"、 "把包发到 npm"、"npm trusted publishing"、"OIDC 发布"时使用此技能。 也适用于用户已有项目想添加 npm 自动发布流程的场景,或者 npm publish 失败需要排查的场景。
Autopilot 是一套 Claude Code 插件,核心是一个完整的自动驾驶工程工作流——从你描述目标到代码合并,全程自动化。
当你输入 /autopilot 实现用户头像上传功能,它不会直接开始写代码。
它先进入 Plan Mode,深入分析你的代码库——架构、技术栈、已有模式、可复用的工具函数——然后产出一份设计文档:技术方案、文件影响范围、风险评估、真实测试场景。这份文档会交给你审批。你可以反复修改直到满意。
审批通过后,autopilot 同时启动两个独立的 Agent:
这种信息隔离不是偏执,而是工程纪律。红队测试代表的是设计意图,不是对已有实现的追认。如果蓝队的实现偏离了设计,红队的测试会抓住它。
编码完成后进入五层 QA。不是跑一遍测试就完事:
QA 有失败项?autopilot 不会乱修。它按系统化调试方法论走四个阶段:观察完整错误 → 形成因果假设 → 用最小实验验证假设 → 假设被证实后才做修复。红队测试失败了?改实现,不改测试——没有例外。最多自动修复 3 轮,修不好交还给你。
全部通过后,你做最终验收,autopilot 执行智能提交并合并。整个过程中,它会自动把设计决策和调试教训沉淀到项目知识库,下次遇到类似问题时自动加载参考。
全程你只需要介入两次:设计审批和最终验收。
/autopilot <目标> — 全流程闭环6 阶段状态机驱动(design → implement → qa → auto-fix → merge → done),状态持久化到文件,支持 Git Worktree 隔离。
贯穿全流程的两条核心原则:成功需要证据(命令输出、测试结果,"我检查了"不算)和假设需要证据(对外部系统的假设必须运行时验证,不能仅凭文档)。
/autopilot commit — 智能提交三阶段并行执行模型。分析改动 → 代码优化(React 最佳实践 + 简化)→ Bugfix 双模式验证 + 代码理解测验 + 元数据更新——并行执行 → 提交 + 任务同步。
上下文感知:检测到代码已通过五层 QA 时,自动跳过优化和测验——再优化可能破坏已验证状态。
代码理解测验考的是设计权衡和失败模式("如果上游返回的数据结构和预期不同会怎样?"),不是语法细节。Vibe Coding 时代,开发者的核心价值是有效监督 AI 产出。
/autopilot doctor — 工程健康度诊断10 维度加权评分(测试 20% / 类型 15% / Lint 10% / 构建 10% / CI 10% / 结构 10% / 文档 10% / Git 8% / 依赖 2% / AI 就绪度 5%),S-F 六级评分。
输出 autopilot 兼容性矩阵:将 9 项核心功能映射到依赖维度,告诉你具体哪项功能会因为基础设施不足而降级。--fix 模式对低分维度自动生成修复方案,逐项确认后应用。
claude -w <name> 创建 worktree 后自动完成初始化:按 .claude/worktree-links 创建符号链接(.env、.mcp.json 等)、确定性端口分配(避免多 worktree 冲突)、自动识别包管理器安装依赖。退出时自动清理。/worktree-repair 可手动修复配置缺失。
除了核心的 autopilot,还提供以下实用插件:
| 插件 | 一句话描述 |
|---|---|
| writer-skill | 博客向 / 通用向 / 技术文档向三种写作风格 |
| npm-toolkit | OIDC 自动发布(无需 token)+ GitHub Actions CI/CD 配置 |
| summarizer | 文章/视频/音频自动提取 + 结构化摘要 + flomo 保存 |
| task-notifier | 任务执行完自动播放系统提示音 |
以下方式是给 Claude Code 用的。
/plugin marketplace add https://github.com/strzhao/autopilot.git
然后按需安装你想用的插件。
git clone https://github.com/strzhao/autopilot.git
cd autopilot
/install plugins/autopilot
重启 Claude Code 后生效。
以下方式是给 Codex CLI 用的,目前提供的是 Autopilot for Codex 插件包,对应技能:
$autopilot-codex$autopilot-commit-codex$autopilot-doctor-codexgit clone https://github.com/strzhao/autopilot.git
cd autopilot
codex
进入 Codex 后输入:
/plugins
然后在 String Codex Plugins marketplace 里安装 Autopilot for Codex。
安装完成后,后续你可以在任意工作目录直接执行 codex 使用,不需要继续从本仓库启动。
git clone https://github.com/strzhao/autopilot.git
cd autopilot
codex/bin/string-codex-plugin install
可选检查:
codex/bin/string-codex-plugin list
codex/bin/string-codex-plugin doctor
官方方式:
codex -> /plugins -> uninstall Autopilot for Codex命令行方式:
cd autopilot
codex/bin/string-codex-plugin uninstall
MIT
DevsForge Enterprise CI/CD Automation Architect delivering comprehensive pipeline optimization, deployment automation, and continuous integration frameworks that transform DevOps from operational necessity into strategic business value creation and development excellence catalyst
Share bugs, ideas, or general feedback.
GitHub Actions CI/CD - workflows, authentication, inspection
PROJECT.md-first autonomous development with hybrid auto-fix documentation. 8-agent pipeline, auto-orchestration, docs auto-update on commit (true vibe coding). Knowledge base system with 90% faster repeat research. Strict mode enforces SDLC best practices automatically. Works for ANY Python/JavaScript/TypeScript/Go project.
Automates pubm setup for new open source projects — configures registries, CI, and changesets with a single skill invocation.
Prepare codebases for public/open-source release and audit them for openness - full lifecycle prep or standalone review
NPM package manager skills with dependency validation hooks.