AGENTS.md@src/scaffoldA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

AGENTS.md@src/scaffold from pugyy/dw-harness is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add pugyy/dw-harness/src/scaffold/AGENTS.md@git:20261116.93752dd

Pins git:20261116.93752dd in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 16 of 16 checks passed
Kind
AGENTS.md file
Repository
pugyy/dw-harness
Path
src/scaffold/AGENTS.md
Versions recorded
2
Latest version
git:20261116.93752dd, committed Nov 16, 2026
First version recorded
Nov 16, 2026
Size
2,360 bytes
Repository stars
7
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# dw-harness 数仓工程规范(AGENTS.md)

本文件是跨工具共享的规范入口(Claude Code 通过 CLAUDE.md 的 `@AGENTS.md` 引用;
Codex / Cursor / ZCode 等可直接读取)。项目个性信息在 CLAUDE.md 与 contract 中。

## 硬规则(hook 强制,违反会被拦)

- 禁止 `SELECT *` / `t.*`,必须显式列字段(`COUNT(*)` 不受限)
- `INSERT (OVERWRITE)` 必须声明目标 `PARTITION`;StarRocks 按项目配置降级为告警
- `UPDATE` / `DELETE` 必须带 `WHERE`
- 分区字段统一 `partition_dt STRING`(yyyyMMdd),不叫 `dt`
- 金额字段 `DECIMAL(20,4)`,禁止 `DOUBLE`;币种与单位在契约中分开声明
- 受保护对象(`.claude/dw/harness.json` 的 `protected_objects`)禁止写入性操作
- 生产环境(`DW_HARNESS_PROD=1`)破坏性操作一律拒绝,走正式发布入口

## 八步工作流(MaxCompute → StarRocks 主线)

> 命令前缀:插件模式为 `/dw-harness:dw-*`(如 `/dw-harness:dw-etl`);
> 复制模板模式保留裸名 `/dw-etl`。下文以裸名书写。

1. `/dw-requirement-analysis` 需求分析 → 需求摘要 + 字段口径草稿 + 待确认清单
2. `/dw-technical-design` 技术设计 → OneData 建模 + 契约 contract.yaml 定稿
3. `/dw-etl` ETL 开发 → `ddl_[表].sql` + `insert_[表].sql`(+ `ddl_sr_[表].sql`)
4. `/dw-self-test` 自测 → 23 项检查报告(fork + 专用 agent 隔离运行)
5. `/dw-data-comparison` 数据比对 → `dw reconcile` 键级对账证据
6. `/dw-sr` SR 导入 → SR DDL + 风险分析
7. `/dw-performance-optimization` 性能优化 → 计划/静态判断说明
8. `/dw-dqc` SLA/DQC → `dw dqc gen` 稳定 ID 规则

进度由 `/dw-next` 从已验证交付物推断,不依赖会话记忆。

## 确定性命令(模型解释结果,不放行)

- 校验:`dw lint <files>`
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add pugyy/dw-harness/src/scaffold/AGENTS.md@sha256:f6086f8b5cbd69f1

The line at the top of this page pins the label git:20261116.93752dd, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_zpqdmc4gs26qfi7u.svg)](https://markdownregistry.com/a/art_zpqdmc4gs26qfi7u)

1 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in pugyy/dw-harness/src/scaffold/AGENTS.md since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of AGENTS.md from somewhere else? Ask it: where did my AGENTS.md come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 2 versions of this file, all committed on Nov 16, 2026.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20261116.93752dd latest2026-11-16 93752dd 2,360 BA view · diff
git:20261116.2a40ad62026-11-16 2a40ad6 2,189 BA view
Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  16 of 16 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2360 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No encoded command decoded and run in a shell
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No decoded text run in a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

pugyy/dw-harness · 7 stars · license MIT · pushed 2026-11-17 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_zpqdmc4gs26qfi7u
GET https://markdownregistry.com/api/v1/resolve?ref=pugyy/dw-harness/src/scaffold/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/f6086f8b5cbd69f1a29e28d138d21e360a98238d42b56be5ef9969a55e7cbd98
GET https://markdownregistry.com/api/v1/list?kind=agents

Every file of this kind listed here, most starred first, in pages: send each page's next back as cursor. JSON, no key.

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from pugyy/dw-harness

my-custom-skill SKILL.md skill
pugyy/dw-harness · examples/demo/v1_project/.claude/skills/my-custom-skill/SKILL.md · 用户自建技能,迁移后必须原样保留。
git:20261116.a2b83fa · audit B · 7 stars
CLAUDE.md@examples/demo/v1_project CLAUDE.md file
pugyy/dw-harness · examples/demo/v1_project/CLAUDE.md
git:20261116.a2b83fa · audit A · 7 stars
dw-backfill SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-backfill/SKILL.md · 历史回填预演:目标环境、分区范围、幂等策略、检查点与扫描估算, 预演阶段只读不落盘。适用于需要重刷历史分区时。
git:20261116.93752dd · audit A · 7 stars
dw-bootstrap SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-bootstrap/SKILL.md · 初始化/迁移 dw-harness 到当前项目(写 AGENTS.md、rules、harness.json,合并 settings.json)。仅在用户明确要求安装或升级 harness 时使用。
git:20261116.82a397b · audit A · 7 stars
dw-check SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-check/SKILL.md · 发布前统一验收:跑 dw check 汇总 lint/契约/DDL/DQC/对账证据, 输出四态(PASS/FAIL/UNVERIFIED/N-A)报告。适用于合并/上线前最后关口。
git:20261116.8587e14 · audit A · 7 stars
dw-contract SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-contract/SKILL.md · 表契约操作:校验、编译、与基线 diff、记录破坏性变更的迁移决定。 适用于新增/修改字段口径、金额单位变更、与基线比对时。
git:20261116.8587e14 · audit A · 7 stars
dw-data-comparison SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-data-comparison/SKILL.md · Step 5/8 数据比对:新旧表/上下游键级对账,产出可复跑的对账证据, 只回收差异摘要。适用于自测通过后与基线数据核对。
git:20261116.93752dd · audit A · 7 stars
dw-dqc SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-dqc/SKILL.md · Step 8/8 SLA/DQC:从表契约生成稳定 ID 的 DQC 规则配置并校验漂移。 适用于任务上线前的质量规则配置。
git:20261116.82a397b · audit A · 7 stars
dw-etl SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-etl/SKILL.md · Step 3/8 数仓 ETL 开发:生成 MaxCompute 建表 DDL、INSERT SQL, 并由 hook 做写后规范反馈。适用于契约定稿后开始写表和任务 SQL。
git:20261116.8587e14 · audit A · 7 stars
dw-next SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-next/SKILL.md · 从已验证的交付物推断八步流程进度并给出下一步。适用于会话开始、 compact 之后、或不确定当前做到哪一步时。
git:20261116.8587e14 · audit A · 7 stars
dw-performance-optimization SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-performance-optimization/SKILL.md · Step 7/8 性能优化:分析 ETL SQL 的分区裁剪、JOIN 策略、数据倾斜与 扫描预算,输出带证据级别的优化建议。适用于任务上线前或超时排查。
git:20261116.8587e14 · audit A · 7 stars
dw-requirement-analysis SKILL.md skill
pugyy/dw-harness · plugins/dw-harness/skills/dw-requirement-analysis/SKILL.md · Step 1/8 数仓需求分析:解读 PRD、梳理字段口径草稿、探索上游表结构、 输出待确认问题清单。适用于接到新数仓需求需要结构化拆解时。
git:20261116.8587e14 · audit A · 7 stars

Every file in pugyy/dw-harness

Browse by kind, by grade A, or by owner.