| schema | fcvw/skill@1 |
| name | retroactive-instantiation |
| description | Adopt FCVW in an existing project without overwriting history. |
| version | 1.1.1 |
| trigger_keywords | ["retroactive instantiation","legacy project","migrate framework","adoção retroativa"] |
| session_types | ["instantiation","migration"] |
SKILL: Retroactive Instantiation
High-density activation guide for adopting FrameCode VibeWork inside an existing, advanced, legacy, or partially governed application.
Purpose
Adopt FCVW non-destructively in an existing application, separating observed project truth from framework policy and from pre-adoption history.
Activation Triggers
Load this skill when:
- the user asks for retroactive FCVW adoption in an existing application;
- the repository already contains application code before FCVW is installed;
- an older or partial
FCVW/ structure must be migrated forward;
- the task mentions "instanciação retroativa", "adotar FCVW", "migrar framework antigo", "legacy app", "advanced app", or "governance retrofit".
Use project-instantiation instead for blank or fresh Phase 0 projects.
Mandatory Source of Truth
Read and follow FCVW/RETROACTIVE_INSTANTIATION.md.
This skill is only the JIT trigger and compact checklist. Do not duplicate or override the canonical workflow.
Inputs
Existing repository and history, current application documentation, RETROACTIVE_INSTANTIATION.md, OWNERSHIP.md, framework lock and migration, project authority, and baseline build/test/deploy evidence.
Execution Checklist
- Read
AGENTS.md, FCVW/RETROACTIVE_INSTANTIATION.md, and FCVW/CONTEXT_MAP.md.
- Inspect the current repository and classify it:
- Case A: no FCVW present;
- Case B: older FCVW present;
- Case C: partial or inconsistent FCVW present.
- Create or update
FCVW/Plans/in_progress/P2-R4-{date}-retroactive-instantiation.md.
- Preserve application files first: source code, root README, runtime configs, data, tests, deployment files, and existing docs.
- Load
skills/code-hygiene-refactor/SKILL.md and record a non-destructive hygiene triage: duplicates, stale files, dead code candidates, catch-all modules, and monolith candidates.
- Load
skills/anti-monolith-guard/SKILL.md for every identified monolith that will receive new changes.
- Import, repair, or migrate FCVW under
FCVW/ using non-destructive merges.
- Fill project documents from evidence; use
To be defined for missing facts.
- Preserve historical plans, changelogs, troubleshooting records, decisions, audits, and wiki pages.
- Add a changelog fragment and validation evidence; regenerate filesystem paths when changed, and create wiki/session records only when their promotion or handoff criteria are met.
- Run safe local tests and structural checks; record limitations instead of inventing results.
- Move the plan to the final status folder only after validation is recorded.
Hard Rules
- Do not run recursive replacement across the repository.
- Do not overwrite application code or product docs with framework templates.
- Do not copy secrets or private data into FCVW records.
- Do not claim historical FCVW governance for work that happened before FCVW adoption.
- Do not refactor application code during retroactive instantiation unless the user explicitly requested it.
- Do not add new behavior to an identified monolith until
anti-monolith-guard passes.
- Do not delete duplicate, stale, or dead-code candidates without validation and a separate cleanup scope.
Required output
Pre-adoption baseline, ownership map, imported framework version, completed or deferred profiles, preserved histories, first governed plan/changelog, validation comparison, and unresolved adoption risks.
Validation and exit
Exit when pre-existing behavior is replayed, ownership and version namespaces validate, no application history was overwritten, project-profile gaps are explicit, and the active adoption plan records regression evidence and remaining risk.