ralph-knowledge-merge-and-promotion
Ralph Knowledge Merge And Promotion
This skill contains the deterministic parts of Ralph-v2's knowledge pipeline.
Pipeline Tiers
- Iteration scope:
iterations/<N>/knowledge/ - Session scope:
knowledge/ - Workspace scope:
.docs/
Preflight Gates
| Gate | Mode | Creates If Missing |
|---|---|---|
| 0 | EXTRACT | iterations/<N>/knowledge/ + Diátaxis subdirs |
| 1 | STAGE | knowledge/ + Diátaxis subdirs |
| 2 | PROMOTE | .docs/ + Diátaxis subdirs |
If auto-creation or validation fails, return blocked.
Extracted File Frontmatter
---
category: tutorials | how-to | reference | explanation
source_session: <SESSION_ID>
source_iteration: <N>
source_artifacts:
- iterations/<N>/tasks/task-3.md
extracted_at: <ISO8601>
staged: false
staged_at: null
promoted: false
promoted_at: null
---
Merge Algorithm
| Case | Condition | Action |
|---|---|---|
| New file | No matching filename in target | Copy directly |
| Source newer | Source timestamp greater than target | Overwrite target |
| Target newer | Target timestamp greater than source | Skip |
| Content overlap | Same category and >50% H2/H3 heading overlap | Append unique sections |
| Contradictory content | Same heading, different body | Newer content wins |
EXTRACT Checklist
- Poll signals.
- Initialize
## Knowledge Progressif missing. - Run Gate 0.
- Collect evidence from tasks, reports, plan, and review artifacts.
- Re-poll signals.
- Filter to reusable knowledge only.
- Classify into exactly one Diátaxis category.
- Write iteration knowledge files with traceability frontmatter.
- Update
iterations/<N>/knowledge/index.md. - Update knowledge progress.
STAGE Checklist
- Poll signals.
- Run Gate 1.
- Resolve source iterations.
- Inventory current session knowledge.
- Merge selected iteration knowledge into session knowledge.
- Mark source entries as staged.
- Update
knowledge/index.md. - Update
plan-knowledge-staging.
PROMOTE Checklist
- Poll signals.
- Initialize knowledge progress section if needed.
- Respect
INFO + target: Librarian + SKIP_PROMOTION:. - Run Gate 2.
- Read staged, unpromoted knowledge files.
- Re-poll signals.
- Merge into
.docs/. - Strip staging-only frontmatter and normalize content.
- Apply
diataxis-categorizerfor sub-category resolution. - Mark entries promoted.
- Update
knowledge/index.mdand.docs/index.md.
More from arisng/github-copilot-fc
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
20openspec-sdd
>-
2blazor-blueprint-ui
Build and customize .NET 8+ Blazor UIs with BlazorBlueprint. Use when choosing between BlazorBlueprint.Components and BlazorBlueprint.Primitives, wiring setup and providers, using ToastService/DialogService/localization, selecting icon packs, applying shadcn-ui-style theming, or copying and adapting BlazorBlueprint blueprints.
2beads
Track complex, multi-session work with dependency graphs using beads issue tracker. Use when work spans multiple sessions, has complex dependencies, or requires persistent context across compaction cycles. For simple single-session linear tasks, TodoWrite remains appropriate.
1agent-evaluator
Deterministic custom subagent selection helper. Use when you need a reproducible, auditable decision on which custom subagents to activate for a user query (runs scripts/agent_evaluator.py).
1chrome-extension
Expert knowledge in developing Chrome extensions covering all aspects from basic architecture to advanced features. Covers Manifest V3, service workers, content scripts, Chrome APIs, popup and options pages, security, performance, testing, debugging, and publishing. Use when developing Chrome extensions or migrating from Manifest V2 to V3. For HTML, CSS, and JavaScript best practices and modern web APIs, use the modern-web-dev skill.
1