rectify

Map architectural gaps and produce an immunity plan with a Mermaid diagram.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/Trecek/useful-claude-skills --skill rectify-trecek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rectify
Source: https://github.com/Trecek/useful-claude-skills/tree/main/.claude/skills/rectify
Command: npx skills add https://github.com/Trecek/useful-claude-skills --skill rectify-trecek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deep investigation of test gaps and architectural weaknesses following an investigation, then devise a plan for architectural immunity rather than direct fixes. Use when the user asks to address root architectural causes after an investigation and to ensure issues are surfaced by testing rather than patched.

Core Features & Use Cases

  • Post-investigation immunity design: Analyze an investigation to identify systemic architectural weaknesses that allowed the bug to slip through tests.
  • Architectural mapping: Use subagents to thoroughly map components and their interactions to surface structural gaps.
  • Immunity-focused plan: Produce a plan that changes architecture, patterns, and contracts to make future issues detectable by testing; generate a detailed plan in a dedicated temp/rectify/ directory and visualize with a mermaid diagram.
  • Non-code remediation emphasis: Prioritize architectural immunity over direct code fixes and avoid altering source files.

Quick Start

Initiate rectify after an investigation to map gaps and draft an immunity plan.

Frequently Asked Questions about rectify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map architectural gaps that allowed a bug to slip past tests?

To map architectural gaps, analyze the investigation context using subagents to thoroughly map components and their interactions. This surfaces structural test gaps and patterns that allowed the bug to slip through, producing a documented immunity plan rather than direct fixes.

What is architectural immunity planning after a bug investigation?

Architectural immunity planning is the process of analyzing systemic weaknesses post-investigation to change architecture, patterns, and contracts. It ensures future issues are surfaced by testing rather than patched, producing a detailed plan with a Mermaid diagram in a dedicated temp/rectify/ directory.

How do I create a test gap analysis plan without altering source files?

Create a test gap analysis plan by running a post-investigation session to outline an immunity-focused architecture. The process prioritizes architectural changes and pattern analysis over direct code fixes, generating a remediation plan and visual diagram without modifying source files.

Does architectural gap analysis require a prior investigation session?

Yes, architectural gap analysis requires a prior investigation session. It is applied after an investigation to document the context, map affected components and related patterns across the codebase, and craft an immunity plan rather than applying direct fixes.

What is the best way to design architecture to prevent future test gaps?

The best way to prevent future test gaps is to architect immunity by changing patterns and contracts so issues become detectable by testing. Use subagents to map component interactions and generate a visual Mermaid diagram of the structural remediation plan.

When should I avoid direct code fixes during bug remediation?

Avoid direct code fixes during bug remediation when addressing root architectural causes after an investigation. Prioritize producing an immunity-focused architecture plan that makes future issues detectable by testing, ensuring systemic weaknesses are resolved rather than patched.