altium-rule-harvest
Turn the user's design feedback from a project into rule, guideline and user-standard proposals, plus upkeep that keeps the rules small; use at the end of every design stage, or when asked what the kit should learn from a design.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- altium-rule-harvest
- description
- Turn the user's design feedback from a project into rule, guideline and user-standard proposals, plus upkeep that keeps the rules small; use at the end of every design stage, or when asked what the kit should learn from a design.
03 SKILL.md 正文
Goal
Sort every piece of user feedback from one design stage into: better check, project only, user standard, or central candidate. Write the proposals; change nothing until the user has sorted them.
Inputs
projects/<name>/ai/feedback.jsonl(lines for this stage; WF-08 PROPOSED)projects/<name>/ai/review/harvest_*.md(earlier harvests: do not propose a dropped item again)projects/<name>/project.json(standard,rules_version),PROJECT.md- the user standard named in
project.json, if any
Rules to load
rules/01_WORKFLOW_GATES.md(WF-04 rule changes, WF-08 feedback log)docs/DESIGN_STANDARDS.md(layers, the five tests for "general")docs/RULE_FEEDBACK_LOOP.md(the loop)rules/00_INDEX.mdandguidelines/to find existing rules before proposing new ones
Approach
- Group feedback lines that describe the same problem. One group = one row.
- Search the existing rules and guidelines first. If one covers it, the row is "check fix": say which check or skill missed it and how a script could catch it next time.
- Use the
causeto choose the layer (DESIGN_STANDARDS.md). When unsure between user standard and central, choose user standard: it is cheap to promote later and costly to push one person's taste to everyone. - Central candidates must pass the five tests. Rewrite them in house format (ID, MUST, Why, Check, Source, Status PROPOSED) with project numbers removed. Never invent a value or a source; write NOT SET and say what is missing.
- Add one "rules health" row (RULE_FEEDBACK_LOOP.md section 5): run
python tools/scripts/rules_lint.pyand report its WARN lines, rules that overlap, CHECKLIST rules a script could check, and rules that belong in a domain pack. - Write
ai/review/harvest_<stage>.md, one table: | # | Feedback lines | Case | Proposed text | Source | Evidence | Your call | Leave "Your call" empty, then ask the user to fill each row: central / mine / project / drop.
Exit checks
| Check | How | Pass when |
|---|---|---|
| every feedback line of the stage is in a row | count lines vs rows | none missing |
| central rows pass the five tests | DESIGN_STANDARDS.md | source, reach, evidence, checkable, no project data |
| new rule text is valid | python tools/scripts/rules_lint.py on a scratch copy |
exit 0 |
Write back (only after the user sorted the rows)
- mine →
standards/local/<name>.md, fromstandards/TEMPLATE.md - central → a branch in the user's clone with the rule or guideline (PROPOSED) and an evidence summary with no designs, customer names or paths. Ask before opening the PR (it is outward).
- check fix → an entry in
docs/LESSONS_LEARNED.mdand, if the user agrees, a checker task PROJECT.md: one line per decision; the harvest file keeps the "Your call" column as the record
Escalate when
Feedback conflicts with a rule (the user may want the rule changed: WF-04), or a proposal would loosen a fab-profile limit.
04 同仓库更多 Skills
altium-orchestrator
Pick the next step in an Altium board project under projects/<name>/; use at the start of a design session or when unsure which phase, rules or playbook apply.
altium-local-library
暂无简介
altium-jlc-quote
Get JLCPCB PCB + assembly quotes for one or more boards at several quantities through the browser, including the full cost when parts are short on stock, and deliver an Excel workbook and a screenshot document; use when the user asks for a JLC (PCBA) quotation or price.
altium-fab-package
Build and check the production package for the manufacturer (Gerber zip, BOM, CPL, README, optional assembly drawing) from an Altium or KiCad design, with BOM alternates and a CPL checked by numbers; use when the user asks for fab, production or assembly files.
altium-component-intake
Get a number about a part from the component database, or add a part met for the first time (datasheet download, extraction, check); use whenever a design needs a pin, rating, package or application value of a part.