.agents/skills/refine-project-context/SKILL.md
Refines .agents/PROJECT_CONTEXT.md via editor mode or challenge mode. Challenge mode validates the document against the actual codebase and detects compliance issues. Triggered by: bun nvst refine project-context.
npx skillsauth add lpng-plenge/frontend-IA refine-project-contextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Update .agents/PROJECT_CONTEXT.md in place based on user feedback or codebase validation. The file must already exist; this skill does not create it from scratch.
Do NOT start implementing. Only update the document (and optionally .agents/TECHNICAL_DEBT.md in challenge mode).
Two modes available — determined by the
modecontext variable:
- Editor mode (default) — apply specific changes requested by the user.
- Challenger mode (
mode = "challenger") — validate PROJECT_CONTEXT.md against the actual codebase, detect discrepancies, and present findings individually for user triage.
| Source | Used for |
|--------|----------|
| .agents/PROJECT_CONTEXT.md | The current document to refine |
| Actual codebase files | Challenge mode: comparing documented conventions vs reality |
| User answers (interactive mode) | Directing changes (editor) or triaging findings (challenger) |
Ask only what is needed to understand the requested change.
1. What would you like to change or add to the project context?
A. Update conventions (naming, formatting, git flow)
B. Update tech stack details
C. Update code standards
D. Update testing strategy
E. Update product architecture
F. Update modular structure
G. Update implemented capabilities
H. Other: [describe]
2. Anything else to update in this pass?
[Open answer — skip if none]
Apply changes to the document following the same Output Structure as create-project-context.
After editing:
.agents/PROJECT_CONTEXT.md.create-project-context skill).Act as a codebase auditor. Systematically compare the content of PROJECT_CONTEXT.md against the actual codebase to detect discrepancies. Do not apply any change without explicit user approval.
Read the codebase (file structure, imports, patterns, config files, test files) and compare against each section of PROJECT_CONTEXT.md:
package.json, tsconfig.json, lock files, and actual imports?CRITICAL: Present findings one at a time. After delivering one finding, stop and wait for the user to respond before moving on. Do not queue or batch findings.
For each discrepancy, classify it as one of two types and present:
Finding [N/total]: <section name>
Type: PROJECT CONTEXT NOT COMPLIANT | CODE NOT COMPLIANT
Description: <what the discrepancy is>
Evidence: <specific file(s) or code snippet(s) that demonstrate the discrepancy>
Suggested action:
- If PROJECT CONTEXT NOT COMPLIANT: <proposed fix to PROJECT_CONTEXT.md>
- If CODE NOT COMPLIANT: <summary to record as technical debt>
Accept / Reject / Discuss?
After all findings have been reviewed:
For accepted "PROJECT CONTEXT NOT COMPLIANT" findings:
.agents/PROJECT_CONTEXT.md.For accepted "CODE NOT COMPLIANT" findings:
.agents/TECHNICAL_DEBT.md in the format below..agents/TECHNICAL_DEBT.md if it does not already exist.TECHNICAL_DEBT.md entry format:
### TD-<NNN>: <short title>
- **Source:** Challenge mode — iteration <current_iteration>
- **Date:** <ISO 8601>
- **Section:** <PROJECT_CONTEXT.md section>
- **Description:** <what the code does that doesn't match the documented convention>
- **Evidence:** <file path(s) and brief description>
- **Suggested resolution:** <what should change in the code>
After all findings are processed, output a summary:
Challenge Summary:
- Total findings: N
- Accepted (project context updated): X
- Accepted (technical debt recorded): Y
- Rejected: Z
Files modified:
- .agents/PROJECT_CONTEXT.md: [yes/no]
- .agents/TECHNICAL_DEBT.md: [yes/no — created/updated/unchanged]
create-project-context skill).create-project-context skill Output Structure.TD-NNN entry; if new, start at TD-001.Before saving:
.agents/PROJECT_CONTEXT.md.agents/TECHNICAL_DEBT.mdstate.json will be updated by the CLI command (not by this skill)testing
Refines an existing test plan based on user feedback or adversarial challenge mode. Triggered by: bun nvst refine test-plan.
development
Refines an existing refactor plan based on user feedback or adversarial challenge mode. Triggered by: bun nvst refine refactor-plan.
documentation
Updates an existing product requirement document based on user feedback. Triggered by: bun nvst refine requirement.
development
# refactor-prd (scaffold) <!-- TODO: Complete. All content in English. --> ## Objective TBD — Add refactor use cases to the iteration PRD (`it_<iteration>_PRD.json`), with associated regression tests if requested. ## Inputs TBD — `it_<iteration>_refactor_plan.md`, `it_<iteration>_PRD.json`. ## Outputs TBD — Updated `it_<iteration>_PRD.json`. ## Checklist TBD