refiners-update

在发生重大变更后更新现有 Lattice 标准(对应 lattice-init 的更新模式)。扫描 .lattice/standards/ 目录,询问哪些内容变更,按需将受影响标准路由到相应精炼器的修订模式,并记录原生的 Git 变更说明。此操作在用户发出如“update refiners”“refiners update”“our standards changed”“update our standards”等指令时触发。

仓库最近推送
GitHub Stars
218
Forks
18
Issues / PRs
3

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "refiners-update":https://skillpi.com/zh/skills/deepskill-30cf54247d73c3ecb8eeb7b6d9a5b1f3245a84a1426aec9b112a660293b60542。安装前核对上游来源和版本:https://github.com/techygarg/lattice。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在发生重大变更后更新现有 Lattice 标准(对应 lattice-init 的更新模式)。扫描 .lattice/standards/ 目录,询问哪些内容变更,按需将受影响标准路由到相应精炼器的修订模式,并记录原生的 Git 变更说明。此操作在用户发出如“update refiners”“refiners update”“our standards changed”“update our standards”等指令时触发。

0 下载

介绍来源: third_party · techygarg · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: refiners-update
description: "Update existing Lattice standards after a significant change — the update-mode counterpart to lattice-init. Scans .lattice/standards/, asks what changed, and routes each affected standard to its refiner's revise mode, recording a git-native change note. Use when the user says 'update refiners', 'refiners update', 'our standards changed', 'update our standards', 'the architecture changed, update the standards', 'we switched languages, update the standards', 'revise standards after a big change', or 're-run the refiners'."

Refiners Update

The update-mode counterpart to lattice-init. Where lattice-init detects missing standards and routes you to refiners to create them, this molecule detects existing standards and routes you to each refiner's revise mode to update them after a significant change — then records what changed and why.

It orchestrates the refiners; it never reimplements their interviews. Versioning is git-native: history lives in commits, and each revised document gets a one-line change note. No version numbers are introduced.

Required Skills

Read, apply:

  1. framework:knowledge-priming -- Load project context. Understand what the project is and how the code has drifted from the current standards (always).

What This Does (and does not)

  • Does: coordinate revising one or more existing standards documents after a change, and append a change note to each.
  • Does not: create standards that do not exist yet (that is lattice-init + the relevant refiner), reimplement any refiner's interview, or introduce version numbers.

If the change requires a standard that does not exist yet (e.g. the team just adopted DDD but there is no ddd-principles.md), that is creation — direct the user to /lattice-init or the relevant refiner to create it, and note it in the summary.

Refiner → standards document map

Standards doc (in .lattice/standards/) Refiner to revise it Config key
knowledge-base.md /knowledge-priming-refiner paths.knowledge_base
language-idioms.md /language-idioms-refiner paths.language_idioms
architecture.md /architecture-refiner paths.architecture
ddd-principles.md /ddd-refiner paths.ddd_principles
clean-code.md /clean-code-refiner paths.clean_code
review-standards.md /review-refiner paths.review_standards
requirement-standards.md /requirement-forge-refiner paths.requirement_standards

Maintainer note: This table mirrors the refiner inventory. When a refiner is added or removed, update this table (and lattice-init's refiner list). skill-align flags inventory drift across docs.

Workflow

Step 1: Scan existing standards

Read .lattice/config.yaml. For each row in the map above, resolve the path (use the config key's value if set, otherwise the default .lattice/standards/{file}) and check whether the document exists. For each existing document, read its footer to note the current mode (overlay/override) and any prior "Last updated" line.

Present the result:

## Current Standards
- knowledge-base.md:      [exists (overlay, last updated 2026-05-02) / not found]
- language-idioms.md:     [exists / not found]
- architecture.md:        [exists / not found]
- ddd-principles.md:      [exists / not found]
- clean-code.md:          [exists / not found]
- review-standards.md:    [exists / not found]
- requirement-standards.md: [exists / not found]

STOP: If no .lattice/config.yaml exists, or no standards documents are found: there is nothing to update. Tell the user: "No existing standards found. Run /lattice-init to create them first." Do not proceed.

Step 2: Capture what changed

Ask the user what changed and why — in one or two sentences. This is the trigger. It becomes the change note recorded on each revised document and drives which standards are affected.

If the answer describes more than one distinct change (e.g. an architecture shift and a language switch together), capture each as its own short reason instead of one merged sentence. Each affected standard's change note (Step 4) must carry only the reason(s) that actually apply to it — a doc should never be stamped with a reason for a change that did not touch it.

Prompt with the common change types if the user is unsure:

  • Architecture shift (new layer, moved to CQRS, dropped a pattern)
  • Language or framework change
  • New or revised domain rules (aggregates, invariants)
  • New review or quality policy
  • Project identity / stack / directory layout change
  • A learning that should become a standing rule

Step 3: Map the change to affected standards

From the trigger, propose which existing standards are likely affected and why. Present the proposed set with reasoning; do not silently decide the scope.

Change type Likely-affected standards
Architecture shift architecture.md; review-standards.md if it gates on architecture rules
Language / framework change language-idioms.md; clean-code.md if limits are language-specific
Domain rules ddd-principles.md; architecture.md if the domain layer's placement changed
Review / quality policy review-standards.md; clean-code.md
Project identity / stack / layout knowledge-base.md
Requirement / spec policy requirement-standards.md
A learning promoted to a standing rule whichever standard the rule belongs to — clean-code.md, review-standards.md, or architecture.md

Ask the user to confirm or adjust the set before proceeding. Only documents that actually exist (from Step 1) are eligible — for anything that should change but does not exist yet, follow the creation note above.

If Step 2 captured more than one distinct change, tag each affected standard with which of those change(s) justifies its inclusion — a doc can be justified by more than one. Carry this doc-to-reason tagging into Step 4; it determines what each doc's change note says.

Step 4: Revise each affected standard

Execution model: You — the AI running this molecule — drive each revision yourself: load and apply the refiner skill's revise flow as part of this molecule's execution, then return here to append the change note before moving to the next standard. Do not hand control back to the user and end your turn between revising and noting — the change note is this molecule's responsibility and must be written while you still hold control. (If a refiner is instead run as a separate session, the note will be missed — re-invoke /refiners-update afterward; its idempotent re-scan re-detects the revised document so the note still gets recorded.)

For each confirmed standard, in the order it appears in the map:

  1. Offer the choice: Revise now, Skip, or Skip all remaining.

  2. On Revise now: apply the corresponding refiner's revise path — its own "Check for existing documents → Revise" flow, which loads the existing document and updates only the sections the change touched. Reference and apply the refiner skill; do not copy its interview here. Tell the user: "Applying {refiner} in revise mode to update {doc}."

  3. When the refiner's revision completes and control returns here, append (or update) the change note as the final line of the document's existing footer, matching the footer's own plain-italic style (*...*) — not a blockquote:

    *Last updated: {YYYY-MM-DD} — {this doc's tagged reason(s) from Step 3}*

    Use the current date, and only the reason(s) tagged to this specific doc — not the full multi-change text from Step 2 when other captured changes did not touch it. If a prior "Last updated" line exists, replace it with the new one.

  4. On Skip: move to the next standard. On Skip all remaining: jump to Step 5.

Step 5: Summary

Report:

## Standards Updated
- [doc]: revised — [one-line reason]
- [doc]: skipped
- [doc]: needs creation — run /{refiner} (did not exist)

Remind the user:

  • History is git-native — there are no version numbers. The change note carries the "why"; git log carries the "when".
  • Commit the revised standards together with a message that names the change (e.g. chore(standards): revise architecture + review after move to CQRS).

Session behavior

This molecule is idempotent and re-runnable. It owns no living document of its own — every invocation re-scans the current state in Step 1, so running it again after a partial pass simply re-detects what exists and what changed. There is no partial-session document to resume.

版本历史

  1. v2.3.0 GitHub ↗
    原版更新说明

    ## What's Changed * fix(molecules): close pipeline gaps and release 2.3.0 by @techygarg in https://github.com/techygarg/lattice/pull/55 ## Highlights The requirement → design → code pipeline (`/requirement-forge`, `/design-blueprint`, `/code-forge`) is tighter and more predictable when you resume work or change course. - **design-blueprint** — resuming reads the context doc's state: a complete doc is closed (new scope gets a new doc), an approved doc reopens only on request or a `[for design]` note from code-forge, and stale levels count as unfinished. "Just build it" hands off to `/code-forge` instead of implementing. Entering at Level 2 or Level 4 is accepted downstream. It covers design levels 1–4; code-forge owns Level 5. - **code-forge** — resumes at the first unbuilt component, records key files and decisions after each layer, writes `status: complete` only when the work is actually done, fixes small Level 4 changes in place and sends bigger changes back to design-blueprint, and checks acceptance-criteria coverage when a spec is linked. - **requirement-forge** — feature files are written as drafts from the confirmed frame and grow scenario by scenario, with one approval question at the end. Agreed-but-unspecced features are kept under *Planned Features* in the epic file. It approves only finished specs that are still `draft` and never changes a status a person has set. - **Docs and sample** — docs updated to match, and `sample/` now keeps its constraints under `## Technical Constraints` so design-blueprint enforces them. ## Upgrade notes - The default requirement status workflow is now `draft → approved`. `in-design` and `implemented` were never read or written by any skill; teams that want them can add them back with `/requirement-forge-refiner`. Existing spec files are not rewritten. - The "Implementation Notes (Slices)" section is no longer generated in new specs. Existing specs are left as written. - No config migration is needed. **Full Changelog**: https://github.com/techygarg/lattice/compare/v2.2.0...v2.3.0

  2. v2.2.0 GitHub ↗
    原版更新说明

    ## What's Changed * Standardize the multi-host plugin structure around a shared skills/ folder by @techygarg in https://github.com/techygarg/lattice/pull/41 * Add Docusaurus site scaffold + GitHub Pages deploy by @techygarg in https://github.com/techygarg/lattice/pull/44 * fix(molecules): take Level 1 from a linked requirement doc in design-blueprint by @ShuratCode in https://github.com/techygarg/lattice/pull/49 * feat(molecules): per-molecule additional_instructions in config (#50) by @techygarg in https://github.com/techygarg/lattice/pull/51 * fix(atoms): keep learning-harvest entries short when the file has drifted by @IdoGvili in https://github.com/techygarg/lattice/pull/54 ## New Contributors * @IdoGvili made their first contribution in https://github.com/techygarg/lattice/pull/54 **Full Changelog**: https://github.com/techygarg/lattice/compare/v2.1.0...v2.2.0

  3. v2.1.0 GitHub ↗
    原版更新说明

    ## What's Changed * Skills: wording clarity, skill-enhance pipeline, corpus-wide precision-hygiene pass by @techygarg in https://github.com/techygarg/lattice/pull/38 * Add verifier subagent and deterministic verification runner by @techygarg in https://github.com/techygarg/lattice/pull/39 **Full Changelog**: https://github.com/techygarg/lattice/compare/v2.0.0...v2.1.0

  4. v2.0.0 GitHub ↗
    原版更新说明

    ## What's Changed * Shard requirements by epic, strip rollup state, make requirement storage pluggable by @techygarg in https://github.com/techygarg/lattice/pull/34 * feat(molecules): add refiners-update molecule by @ShuratCode in https://github.com/techygarg/lattice/pull/33 ## New Contributors * @ShuratCode made their first contribution in https://github.com/techygarg/lattice/pull/33 **Full Changelog**: https://github.com/techygarg/lattice/compare/v1.5.0...v2.0.0

  5. v1.5.0 GitHub ↗
    原版更新说明

    ## What's Changed * Add security workflow and CODEOWNERS by @techygarg in https://github.com/techygarg/lattice/pull/25 * Add Codex plugin by @techygarg in https://github.com/techygarg/lattice/pull/26 * Skills tuning: pipeline integrity, language compliance, and simplicity principles by @techygarg in https://github.com/techygarg/lattice/pull/29 **Full Changelog**: https://github.com/techygarg/lattice/compare/v1.4.0...v1.5.0

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值78/100

亮点

  • 针对项目重大变更后的标准维护需求,具有明确的实用价值
  • 适用于使用 Lattice 框架的开发团队,受众清晰
触发精准92/100

亮点

  • 触发词覆盖多种变体,边界清晰
  • description 位置正确且内容完整
结构规范95/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档结构完整但缺少 When to Use 章节

    改进建议:建议添加 When to Use 章节以提升文档完整性

亮点

  • Phase/步骤清晰,有出口条件
  • 含端到端示例,frontmatter完整
执行可靠85/100

亮点

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。