Skip to content
Skills Library
AI & agents · Review & audit

cascade-dedup

/cascade-dedup

Use when prompt-doctrine is duplicated, drifted, or conflicting across output-style embeds and external harness AGENTS files. Not for editing the canonical baseline itself.

Licence
Apache-2.0
Last repository change
10.11.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Use when prompt-doctrine is duplicated, drifted, or conflicting across output-style embeds and external harness AGENTS files. Not for editing the canonical baseline itself.

Original author description

Use when prompt-doctrine is duplicated, drifted, or conflicting across output-style embeds and external harness AGENTS files. Not for editing the canonical baseline itself.

How it works

  1. Mapping zones and verifying the invariant
  2. Stripping prefixes and ledgering harness divergence
  3. Applying, verifying, then committing
Original SKILL.md headings · 37 lines, 783 words
SKILL.md preview
---
name: cascade-dedup
description: 'Use when prompt-doctrine is duplicated, drifted, or conflicting across output-style embeds and external harness AGENTS files. Not for editing the canonical baseline itself.'
disable-model-invocation: true
---

# Cascade dedup

You remove duplicated prompt doctrine across the cascade family without ever weakening the canonical baseline. `system-prompt-baseline.md` is the whole file source of truth and wins every conflict. Nothing about the canonical gets edited here; suspect canonical content stops the run with the discrepancy surfaced.

Preview each consequence before rewriting doctrine at rest, bumping the catalog `releaseVersion`, or touching authorized external harness embeds. All other writes stay reversible local with version control as the rollback. Smoke test doctrine effects in a fresh session, since output styles load at session start.

What you need before starting: the canonical baseline file `system-prompt-baseline.md` (must exist), the six output style embeds (`plugins/dstack-core/output-styles/{axiom-mode,builder,duet,linus,dstack,benchmark}.md`), the two external harness embeds (`~/.omp/agent/AGENTS.md` and `~/.codex/AGENTS.md`), and explicit user authorization recorded in the run before any `benchmark.md` tail repair or external embed edit.

## Mapping zones and verifying the invariant

Each output style divides into two zones. The persona prefix above the charter `<role>` (the second `<role>` in the file) is the strip zone and the only dedup target. The tail from that charter `<role>` to end of file is byte identical with the canonical by invariant and never a dedup target. The `benchmark.md` auto generated margin runner preamble stays untouched, and that file has no eligible strip zone because its persona prefix sits inside the generated block.

Copy the canonical to a temporary file, then diff it against the equal length tail of each output style:

```
diff -q /tmp/canon.md <(tail -c "$(wc -c < /tmp/canon.md)" plugins/dstack-core/output-styles/X.md)
```

Tail drift signals a sync bug rather than duplication. Repair it by replacing the whole tail (charter `<role>` to end of file) with the canonical content as one block. Edits inside the invariant zone stay forbidden. `benchmark.md` repairs wait for explicit authorization recorded in this run; without it, leave the file unchanged and report the needed authorization. Record each diff result.

## Stripping prefixes and ledgering harness divergence

Scan the five hand authored prefixes and skip `benchmark.md`. Classify every sentence as one of four kinds. Normalized text (lowercased tokens, stopwords removed) at Jaccard 0.65 or above against a baseline rule marks a duplicate, so strip it and let the baseline copy stand. Jaccard 0.45 or above with opposing modal verbs (must/never, always/must-not) marks a conflict, so the baseline wins and the prefix line goes or gets rewritten. Persona voice (identity, tone, register) is not a directive, so keep it. Persona specific rules with no baseline pair stay unique directives and are kept. Scores in the 0.45 to 0.65 band without opposing modals stay unique directives for human review; never strip those. Every strip cites its baseline pair.

Handle each external file (`~/.omp/agent/AGENTS.md`, `~/.codex/AGENTS.md`) the same way at two levels: internal duplication within the file at the same thresholds, then directive level comparison against the baseline. Ledger each divergence exactly once. Harness adaptations (wording naming that harness tools or commands) are kept. Accidental drift (same rule, mutated wording) gets aligned to baseline wording. Conflicts resolve for the baseline unless the divergence fits harness specific tooling. Nothing stays unclassified.

## Applying, verifying, then committing

Apply all repo edits (strips, conflict resolutions, tail repairs) plus the `releaseVersion` bump when strips or conflict resolutions occurred. Pure re-syncs with zero strips skip the bump. Let the package surfaces generator (`scripts/render-plugin-surfaces.mjs`) re-render every package surface (`plugins/<id>/plugin.json` and `.claude-plugin/plugin.json`) from that one literal. Any `benchmark.md` change ships only with authorization recorded in this run.

Verify before committing: re-run the invariant diffs until all six tails read byte identical (6/6), and run `prek run --all-files`. A failing diff or check blocks the commit; report the failing check and the responsible file. Only then commit all repo files in one atomic commit including regenerated surfaces. A run that classifies fully but fails verification produces no commit; its divergence ledger and classification record still get reported, and the invariant needs re-verification before any later commit. External files change in place and never commit; close the report with an explicit warning listing each externally edited path for user review.

Failed verification leaves no commit to revert, so discard uncommitted repo edits with `git checkout -- <files>`. External edits have no version control safety net, so record original content before editing and restore from that record on failure.

What you hand back: the 6/6 invariant re-verification diff results, strips per file with baseline pair citations, conflicts resolved with the winner named, kept harness adaptations, the complete divergence ledger with one classification per divergence, every externally edited path flagged for review, the `prek run --all-files` result, and the `releaseVersion` decision (bumped literal plus regenerated surfaces, or the no bump rationale). Repo changes land as one atomic commit; external edits land in place and never commit.
Files in this package (2)
  • SKILL.md 6 KB
  • agents/openai.yaml 1 KB

Versions

RepositoryScoreLicence
This page · gosuda/dalcom-skills95Apache-2.0
OutlineDriven/outline-driven-development100Apache-2.0

Database snapshot: 13.11.2026 · package version 4d559fa05e39 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90dedup-skills
    Use when asked to deduplicate a skill tree, fold overlapping skills, or cut the skill count: analyze, gate per family, then fold. Not for prompt-doctrine cascades: use cascade-dedup.
  • 95dedup-skills
    Use when asked to deduplicate a skill tree, fold overlapping skills, or cut the skill count: analyze, gate per family, then fold. Not for prompt-doctrine cascades: use cascade-dedup.
  • 100windsurf-cascade-agents
    Create custom Cascade agent configurations for specialized tasks. Activate when users mention "custom cascade agent", "specialized ai agent", "domain-specific cascade", "agent configuration", or "custom ai behavior". Handles custom agent creation and configuration. Use when…
  • 100windsurf-cascade-agents
    Create custom Cascade agent configurations for specialized tasks. Activate when users mention "custom cascade agent", "specialized ai agent", "domain-specific cascade", "agent configuration", or "custom ai behavior". Handles custom agent creation and configuration. Use when…
  • 100windsurf-custom-prompts
    Create and manage custom prompt libraries for Cascade. Activate when users mention "custom prompts", "prompt library", "prompt templates", "cascade prompts", or "prompt management". Handles prompt library creation and organization. Use when working with windsurf custom prompts…
  • 100agent-instructions
    Create or reconcile scoped AGENTS.md, CLAUDE.md, and Cursor rules from repository evidence. Use when coding-agent guidance is missing, stale, duplicated, or conflicting.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.