Agent Discipline banner
FranklinZaneDurant FranklinZaneDurant

Agent Discipline

AI community

Description

给 AI 编码 Agent 的仓库工作纪律插件(DeepSeek Harness bundle):方法论提示段 + 工件脚手架(AGENTS.md/特性清单/验证门)+ 合规审计。

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

agent-discipline

把《Harness Engineering Methodology》(HARNESS-METHODOLOGY-SPEC v1.0,本仓库随附副本见根目录)实现为 DeepSeek Harness 的 out-of-tree bundle:方法论 persona 提示段 + 工件脚手架工具(agent_discipline_init)+ 合规审计工具(agent_discipline_audit)。本仓库自身也按该方法论约束开发(dogfooding:见 AGENTS.md / feature_list.json / PROGRESS.md)。

安装

本地开发(相对路径 spec 锚定调用目录;本地文件夹名仍为 dsh-methodology):

cd 
pnpm dsh --profile web plugin add ../dsh-methodology

发布后:

dsh plugin --profile web add agent-discipline

使用

  • 提示段:安装后自动注入(system-prompt section agent-discipline,order -90),模型按 §1.3 会话生命周期与核心不变式工作。
  • agent_discipline_init:在目标仓库生成 §8 工件模板(入口指令/特性清单/进度/验证入口/命名注册/清洁清单/评估准则/架构规则),跳过已存在文件。
  • agent_discipline_audit:对照 §10 审计(CRITICAL 6 + 推荐抽样、五子系统 1-5 评分、最弱子系统、判定),只读。

Model Experience

模型可见内容:agent-discipline 提示段(约 1.2KB 文本)+ 两个工具的参数 schema 与结果。agent_discipline_audit 结果含 `report` 字段(文本报告)与结构化字段(verdict/totalScore/scores/weakest/failedCritical)。

方法论映射

插件元素 规范章节
agent-discipline 提示段 §1.3 生命周期、§1.4 不变式、§3.3 状态机、§13 反模式
agent_discipline_init §8 工件契约、§11.1 最小采纳
agent_discipline_audit §10 审计与度量
src/constants.ts + naming-registry.md §14.1 命名单点注册
scripts/check.sh + verify-feature.sh §4 验证子系统、§4.5 通过门
(形态 C 规划)ctx.features §3.3 状态机、§4.5 通过门、OBS-04

致谢与来源声明(开源致谢)

本插件实现的方法论(`HARNESS-METHODOLOGY-SPEC.md`,本仓库随附副本)提炼自开源课程 **《Learn Harness Engineering》**(Harness engineering beginner tutorial, from 0 to 1):

按规范头部的来源声明(附录 A 亦逐条标注条款出处):本规范仅从该课程**逆向抽离逻辑骨架**,不依赖该课程仓库的任何具体代码;本插件仓库同样只实现方法论(提示段 / 脚手架 / 审计),**未复制该课程仓库的模板、脚本或文本**。

**上游许可证**:该课程仓库以 **MIT License** 发布,派生与再分发在保留署名(版权声明 + 许可声明)的前提下被允许。本仓库基于"仅借鉴方法论思想、不复制其代码"的方式派生,已在本文与规范头部完成署名;若后续需要直接复用该课程的素材(模板/脚本/文本),除署名外还需在分发物中附带上游版权与许可声明(MIT 的必备条款),并请以仓库当时的 LICENSE 为准。

当前状态与演进路径(形态