Przejdź do treści
Biblioteka skilli
AI i agenci · Przegląd i audyt

rule-script-reconciler

/rule-script-reconciler

Porównuje mapę skryptów reguł z dokumentacją reguł i zarejestrowanymi skryptami, zgłasza rozbieżności RS-* bez oceny modelu.

Repozytorium
paqad-ai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
5
Skrypty
1
Komentarze HTML
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Skrypty: scripts/reconcile.mjs

Co robi i kiedy

Porównuje mapę skryptów reguł z dokumentacją reguł i zarejestrowanymi skryptami, zgłasza rozbieżności RS-* bez oceny modelu.

Oryginalny opis (EN)

Compares rule-script-map.yml with the rule markdown and the registered scripts, writes RS-* drift findings, and raises user-approvable deltas through the Decision Pause Contract, with no model judgement. Use when feature-development planning starts, or during analyze rules to confirm the map is in sync.

Jak działa

  1. What It Does
  2. Use This When
  3. Inputs
  4. Procedure
  5. Output Contract
  6. Escalate / Stop Conditions
  7. Resources
Sekcje z nagłówków SKILL.md, w oryginale · 62 linii, 411 słów
Podgląd SKILL.md
---
name: rule-script-reconciler
description: 'Compares rule-script-map.yml with the rule markdown and the registered scripts, writes RS-* drift findings, and raises user-approvable deltas through the Decision Pause Contract, with no model judgement. Use when feature-development planning starts, or during analyze rules to confirm the map is in sync.'
metadata:
  model_tier: fast
  cacheable: 'false'
  output_format: markdown
  paqad-meta: skill.meta.yaml
---

## What It Does

Detects every form of rules-as-scripts drift and writes `.paqad/scripts/rules/.cache/drift.json`:

| Code               | Meaning                                                                                                         |
| ------------------ | --------------------------------------------------------------------------------------------------------------- |
| `RS-RULE-ADDED`    | A markdown bullet without a `<!-- @rule -->` marker, or a marked rule absent from the map: an ungated addition. |
| `RS-RULE-EDITED`   | Marker present, but the text hash differs from the map entry.                                                   |
| `RS-RULE-REMOVED`  | A map entry whose marker is gone from the markdown.                                                             |
| `RS-SCRIPT-STALE`  | A rule was edited but its scripts were not regenerated.                                                         |
| `RS-FIXTURE-FAIL`  | A registered script no longer passes its own fixtures.                                                          |
| `RS-CACHE-INVALID` | The findings report exists but its `rule_files_hash` no longer reconciles.                                      |

Any code except `RS-CACHE-INVALID` blocks `feature-development` per the project's `escalation.rule_scripts_stale` setting.

## Use This When

- At `feature-development` planning entry (the planning stage instructions invoke it).
- During `analyze rules`, to confirm the map is in sync before classifying.

## Inputs

- `docs/instructions/rules/rule-script-map.yml` (read-only).
- The rule markdown under `docs/instructions/rules/**` (read-only: no marker embedding here).
- The registered `.paqad/scripts/rules/**/*.mjs` scripts and their fixtures.
- The cached `.paqad/scripts/rules/.cache/report.json` for the cache-validity check.

## Procedure

1. Run the reconciler:
   ```
   node scripts/reconcile.mjs [project-root]
   ```
   Exit 0 = clean. Exit 1 = drift present (blocking).
2. Group findings by code. For each, surface a Decision Pause packet:
   - `RS-RULE-ADDED` → "Unmarked rule detected: treat as a new rule (run `analyze rules`) or as an edit of an existing rule?"
   - `RS-RULE-EDITED` → "Rule text changed: `edit rule RL-…` (regenerate scripts) or accept as-is?"
   - `RS-RULE-REMOVED` → "Marker gone: `remove rule RL-…`?"
   - `RS-SCRIPT-STALE` / `RS-FIXTURE-FAIL` → "Regenerate scripts for `RL-…`?"
3. Apply the chosen resolution through `rule-editor` or `rule-script-generator`. Never edit the map directly.

## Output Contract

- `.paqad/scripts/rules/.cache/drift.json` written with findings + counts + `blocked`.
- A `## Drift Findings` markdown block listing each code, count, and one-line detail.
- A `## Pending User Decisions` block for each surfaced packet.
- Under `escalation.rule_scripts_stale: stop|ask`, block planning until resolved.

## Escalate / Stop Conditions

- Block `feature-development` planning on any RS-\* drift except `RS-CACHE-INVALID`, per `escalation.rule_scripts_stale`.
- Never embed markers or write the map from this skill: resolutions route through `rule-editor` / `rule-script-generator`.
- `RS-CACHE-INVALID` is informational; the runner recomputes the report on its next run.

## Resources

- `references/drift-codes.md`: the RS-\* vocabulary + resolution map.
- `runtime/base/skills/rule-script-reconciler/agents/openai.yaml`: agent interface metadata.
- `src/rule-scripts/reconciler.ts`: the drift-detection engine.
- the Decision Pause Contract (in the framework bootstrap): packet semantics.
Pliki w paczce (5)
  • SKILL.md 4 KB
  • skill.meta.yaml 1 KB
  • agents/openai.yaml 1 KB
  • references/drift-codes.md 4 KB
  • scripts/reconcile.mjs 1 KB

Wersje

W bazie nie ma innych skilli o nazwie rule-script-reconciler.

Migawka bazy z 13.11.2026 · wersja paczki cc67bc7218ec (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100rule-analyzer
    Klasyfikuje reguły w docs/instructions/rules jako deterministyczne, heurystyczne lub niesprawdzalne i szkicuje mapę skryptów reguł.
  • 100module-map-reconciler
    Porównuje drzewo źródeł z mapą modułów i dokumentacją, zapisuje rozbieżności i uzgadnia zaakceptowane zmiany.
  • 100create-rule
    Pomaga tworzyć i aktualizować pliki reguł Claude Code w .claude/rules, z formatem, zakresem ścieżek i dobrymi praktykami.
  • 100rule-architect
    Buduje lub odświeża zestaw reguł dla agentów AI w projekcie: tworzy AI_RULES.md albo porządkuje rozrośnięty indeks reguł po refaktoryzacji.
  • 100rule-review
    Przegląda szkice reguł przygotowane z poprawek użytkownika i zapisuje decyzję o zatwierdzeniu lub odrzuceniu każdej przez CLI rule.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.