Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
programming-workflow logo

programming-workflow

prompts

developmentClaude Codeby cuipengfei

Summary

[Skill] 编程工作流 - 统一的测试驱动开发(TDD)工作流程

Install to Claude Code

/plugin install programming-workflow@prompts

Run in Claude Code. Add the marketplace first with /plugin marketplace add cuipengfei/prompts if you haven't already.

README.md

English Version | 古文版

如何对 GitHub Copilot 进行洗脑改造 🧠🤖

这玩意儿是干啥的?

厌倦了 AI 代理产出面条代码?这个仓库是你的秘密武器,用来对 GitHub Copilot 进行洗脑改造(以及其他 AI 编程助手),把它们变成纪律严明、痴迷质量的代码忍者。把它看作 AI 新兵训练营:没有吼叫,只有精心制作的系统指令,实现手术刀般的精确度。告别“差不多就行”的代码和“我机器上能跑”的灾难。

谁需要这份洗脑手册?

  • 开发者:受够了 AI 的意大利面条代码,想要一个真正能辅助的助手。
  • 团队:想集成 AI,又不想代码库变成数字犯罪现场。
  • 研究员/工程师:痴迷于让 AI 生成的代码可靠、可维护。
  • 业务分析师/产品负责人:需要能理解需求,而不是幻想功能的 AI 代理。

指令武器库

这些是用于精密思想控制的战术模块:

  • 核心行为定义:塑造代理思考和操作方式的基础协议。
  • 标准与质量规范:防止 AI 写出让高级开发者落泪代码的铁律。
  • 流程模板:将模糊想法转化为坚实实现的分步工作流。
  • 工具使用指南:让 AI 代理更聪明(而非更辛苦)工作的高级技巧。

指令文件分解(又名“你的新霸主们”)

.github/instructions/ 目录中的每个文件如何让 AI 屈服于你的意志:

任务控制中心

脑外科手术部(核心行为)

质量控制部(拒绝垃圾代码)

流程工程(化想法为现实)

工具大师学院(高级技巧)

如何使用这些玩意儿

1. 整合:将你的 AI 代理(Copilot、自定义 GPT 等)指向这些指令,通常通过自定义系统提示或知识库。 2. 观察:见证你的 AI 从狂野的代码投掷野兽转变为专注、以质量为导向的伙伴。 3. 改进:这些是活文档。根据你项目的特定“神经症”进行调整。

如何在 VS Code 和 Copilot 里洗脑(正确结构!)

想在 VS Code 里直接洗脑 Copilot?请用正确结构:

1. 打开 VS Code 设置(Ctrl+,Cmd+,)。 2. 搜索 github.copilot.chat.codeGeneration.instructions。 3. 按如下格式添加指令,每条是一个对象,包含 textfile 属性。例如:

"github.copilot.chat.codeGeneration.instructions": [
    { "text": "避免生成与公开代码完全一致的代码。" },
    { "file": "../prompts/.github/instructions/foundational-principles.md" },
    { "file": "../prompts/.github/instructions/planning-workflow.md" },
    { "file": "../prompts/.github/instructions/ba.md" },
    { "file": "../prompts/.github/instructions/quality-standards.md" },
    { "file": "../prompts/.github/instructions/programming-workflow.md" },
    { "file": "../prompts/.github/instructions/response-and-prompt-guidelines.md" },
    { "file": "../prompts/.github/instructions/testing-guidelines.md" },
    { "file": "../prompts/.github/instructions/sequential-thinking.md" }
]

4. 保存并重启 Copilot Chat(如有必要)。 5. 见证 Copilot 服从你的意志(至少会努力服从)。

小贴士: 路径用相对路径,或自定义 text 规则。越具体,洗脑效果越强。

Claude Code 插件安装(推荐!)

本仓库现已支持 Claude Code 插件系统!每个功能都是独立插件,按需安装:

# 添加 marketplace(一次性)
/plugin marketplace add cuipengfei/prompts

# 查看所有 24 个可用插件
/plugin list

可用插件(24 个独立插件)

用户可以选择性安装任意组合:

| Category | Plugin | 描述 | | ---------------- | ------------------------- | ------------------------------------------- | | 🛠 Productivity | improve-prompt | 提示词优化命令(含 NFR 与分级可验证 DoD) | | 🛠 Productivity | desktop-notify | 桌面通知钩子(WSL → Windows Toast) | | 🛠 Productivity | natural-writing | 自然写作输出风格 | | 📚 Learning | structured-responder | 结构化响应输出风格 | | 📚 Learning | response-guidelines | 响应指南 skill | | 📚 Learning | session-learn | 会话学习 - 三层存储分类 + Memory MCP 召回 | | 📚 Learning | help-me-read | 读取 URL 全文,按段落或段落组提供原文、必要译文、轻量 commentary 与文末综合解读 | | 🔧 Tools | jichang | 机场候选评估 - 广告污染、测速偏差、风险分层与低暴露测试优先级 | | 🏗 Development | foundational-principles | 基础原则 skill | | 🏗 Development | quality-standards | 质量标准 skill | | 🏗 Development | programming-workflow | TDD 工作流 skill | | 🏗 Development | testing-guidelines | 测试指南 skill | | 🏗 Development | planning-workflow | 规划工作流 skill | | 🔧 Tools | sequential-thinking | 顺序思维 skill | | 🔧 Tools | shortcut-system | 快捷命令 skill | | 🔧 Tools | zellij-control | Zellij 控制 skill | | 🔧 Tools | codex | Codex 顾问 - 调用 OpenAI Codex 获取第二意见 | | 🔧 Tools | deep-research | 深度研究 - 多源搜索、精确 URL 引用、结构化输出 | | 🔧 Tools | cline-kanban | Cline Kanban - 管理本地编排看板任务 | | 🤝 Collaboration | ba-collaboration | BA 协作 skill | | 📚 Learning | jpm-voice | 提供《金瓶梅》语言风格与文学精髓的化身技能 | | 📚 Learning | evolutionary-architecture | 进化式架构知识库 - 适应性函数、增量变更、架构量子 | | 📚 Learning | exploring-generative-ai | Exploring Generative AI 知识库 - 官方 29 篇文章,覆盖 coding assistants、agentic coding、context engineering 与 local models | | 🤝 Collaboration | debate | 辩论插件 - 主代理与子代理结构化辩论 |

安装示例

# 只安装 TDD 相关
/plugin install quality-standards
/plugin install programming-workflow
/plugin install testing-guidelines

# 只安装提示词优化
/plugin install improve-prompt

# 只安装会话学习(需要 Memory MCP 服务器)
/plugin install session-learn
# 使用: /learn 或 /learn 代码风格
# 使用: /recall 或 /recall 认证模式

# 安装全部
/plugin install improve-prompt desktop-notify natural-writing structured-responder foundational-principles quality-standards programming-workflow testing-guidelines planning-workflow ba-collaboration response-guidelines sequential-thinking shortcut-system zellij-control session-learn codex debate deep-research jpm-voice cline-kanban help-me-read jichang evolutionary-architecture exploring-generative-ai

OpenCode 插件

除了 Claude Code 插件,本仓库还提供 OpenCode 插件包 oc-tweaks(位于 packages/oc-tweaks/),包含五个运行时增强插件:

| 插件 | 功能 | |------|------| | notify | 任务完成或出错时发送桌面通知(自动检测 Windows Toast / macOS / Linux) | | compaction | 会话压缩时自动注入用户语言和风格偏好,摘要不再只输出英文 | | autoMemory | 智能记忆系统:注入边界化 memory 指引、识别触发词、维护 /remember 命令模板并引导用内置 Read/Edit/Write 持久化 | | backgroundSubagent | 强制 sub-agent 默认后台运行,保持主对话响应能力 | | leaderboard | 向 claudecount.com 报告 token 用量 |

启用方式

~/.config/opencode/opencode.json 中添加插件:

{
  "plugin": ["oc-tweaks"]
}

然后创建 ~/.config/opencode/oc-tweaks.json 进行配置(所有字段可选,默认全部启用):

{
  "notify": {
    "enabled": true,
    "notifyOnIdle": true,
    "notifyOnError": true,
    "command": "ssh my-desktop 'notify-send \"$TITLE\" \"$MESSAGE\"'"
  },
  "compaction": { "enabled": true, "language": "繁体中文", "style": "毛泽东语言风格" },
  "autoMemory": { "enabled": true, "autoWrite": "notify", "maxBytesPerFile": 32768, "maxWritesPerSession": 5, "summaryTokenBudget": 4000 },
  "backgroundSubagent": { "enabled": true },
  "leaderboard": { "enabled": false }
}

notify.command 支持 $TITLE$MESSAGE 两个占位符。上面的 SSH 示例适用于从远程开发机向本地桌面发送通知的场景。如果在本地使用,留空即可,插件会自动检测可用的通知方式。

autoMemory v2:智能记忆管道升级

autoMemory 插件在 v2 中完成了记忆管道的全面升级:

  • Summary/Index 注入:不再全量拼接 memory 文件,改为注入每个文件的摘要索引(包裹在 <untrusted_memory trusted=false> 中),token 超出 summaryTokenBudget(默认 4000)时按最近更新时间截断。
  • 按需召回:模型按需通过 memory diag 诊断当前状态,而非一次性全量加载所有 memory 内容。
  • Write+Notify 自动写入:检测到记忆触发词或 /remember 调用时,autoWrite: 'notify'(默认)自动写入并发送通知;'silent' 静默写入;'off' 禁用自动写入。

升级指引(现有用户必读):v2 为 memory 文件引入 frontmatter 元数据(id、scope、type 等)。插件初始化时不会自动迁移,需用户手动执行一次:

/memory-migrate

已有 frontmatter 的文件保持不变;无 frontmatter 的旧文件会被自动补充最小 frontmatter。如需查看当前 memory 系统状态,执行:

memory diag

诊断输出包含:memory 根目录、文件总数、token 估算、最常用的前 5 个文件、最近更新的前 5 个文件。

免责声明

给 AI 洗脑是门艺术,而非精确科学。结果可能因人而异。可能导致你的 AI 产生优越感。请负责任地使用。

Related plugins

Browse all →