Shared Coding Contract
- Refer to Shared Coding Workflow Contract in
../lcs-shared/contract.mdfor folder conventions, Handoff format, and token optimization.
Purpose
- Review
prd.md, harden acceptance criteria, test strategy, security, performance, and maintainability. - Write and save the hardened PRD into
prd-enhanced.mdinside the same work-item directory.
Trigger
- Activate when user requests to "review prd", "audit prd", "harden prd", "security review of prd", or when completing the PRD generation phase.
OKF Frontmatter & Writing Safety
- When creating
prd-enhanced.md, include YAML frontmatter following the schema in../lcs-shared/contract.md. - Follow the Artifact Writing Safety rules in contract.md — generate content first, write one file, verify, stop on failure.
Trigger
Activate when user requests related to this skill's purpose. See description field in YAML frontmatter for trigger phrases.
Behavior checklist
- Read
.lcs/state.mdto identify the active work-item directory:.lcs/work-items/{timestamp}-{slug-work-item}/. - Read
prd.mdinside that active directory. - If
intent.mdexists in that directory, read it and checkprd.mdfor material drift against its Problem, Proposed Outcome, Constraints, and Out of Scope. Flag any conflict under a## Intent Alignmentnote before hardening further. - Review it for gaps: ambiguous acceptance criteria, missing tests, security, performance, and missing Affected Areas / Files.
- Create or update
prd-enhanced.mdin the same directory with the fully hardened specifications. - Keep the original
prd.mdintact, but write all improvements and hardenings directly toprd-enhanced.md. - Add
## Preservation Check. Prove everySRC-###fromprd.mdstill exists inprd-enhanced.md. If a requirement is removed, list it under## Intentionally Removedwith reason. If a requirement was silently dropped, restore it before finishing. - Update
Review Notessection inprd-enhanced.mdwith:- Last Reviewed: {timestamp}
- Summary: <summary of revisions/gaps found>
- Changes Applied:
- End with Handoff section pointing to the next logical step (e.g.,
lcs-tosrsfor SRS transformation), including Source of Truth Bundle, Must Preserve IDs, and Unresolved IDs.
State Synchronization
After successful prd-enhanced.md creation, update .lcs/state.md:
current_phase: prd_reviewwork_items[state.current_work].phase = prd_reviewwork_items[state.current_work].updated_at = <current-ISO-timestamp>timestamp: <current-ISO-timestamp>last_session_note: Hardened prd.md into prd-enhanced.md for <work-name>
Prompt templates
- Starter: "Review prd.md dan perbaiki menjadi prd-enhanced.md agar siap di-slice"
- Checklist ask: "Apakah acceptance criteria cukup spesifik?"
prd-enhanced.md Structure Must be exact structure as prd.md:
PRD:Objective
Background
<why we are doing this, context>
Source Context
<links to explore.md, intent.md, debug.md, or other sources>
Scope
Non-Goals
Requirements
Technical Approach
<architecture, libraries, database changes, APIs>
Affected Areas / Files
Security Considerations
<vulnerabilities, authentication, authz>
Performance Considerations
<latency, database query limits, caching>
Potential Bugs / Edge Cases
<what could go wrong, validations>
Acceptance Criteria
- AC 1:
- AC 2:
Intent Alignment
<if intent.md is present: confirm Problem, Proposed Outcome, Constraints, and Out of Scope remain respected. Flag any material drift here rather than silently accepting it.>
Preservation Check
| SRC ID | Status | Notes |
|---|---|---|
| SRC-001 | preserved | <where/how it appears in enhanced PRD> |
| SRC-002 | enhanced |
Intentionally Removed
Only list requirements removed after explicit scope decision or contradiction resolution.
| SRC ID | Reason |
|---|---|
| <SRC-### or None> |
Test Strategy
- Unit:
- Integration:
- E2E:
Review Notes
- Last Reviewed:
- Summary:
- Changes Applied:
Chain of Truth Report
Level
Strict
Sources Checked
.lcs/state.md.lcs/work-items/{timestamp}-{slug-work-item}/prd.mdlines {range}
Assumptions
- <label each [verified] or [unverified]>
Plan
Actions Taken
Verification
<Automated checks attempted; document every failure>
Report
<Explicit pass/fail per acceptance criterion>
Handoff
Next recommended skill: lcs-tosrs Next file to read: .lcs/work-items/{timestamp}-{slug-work-item}/prd-enhanced.md Current phase: prd_review Current confidence: high Blocking questions: None Risks to carry forward: Source of Truth Bundle: .lcs/state.md, prd.md, prd-enhanced.md, intent.md if present Must Preserve IDs: SRC-001, SRC-002, ... Unresolved IDs: Suggested next command: Transform prd-enhanced.md menjadi SRS deterministik (lcs-tosrs)
Chain of Truth Level
Level: Strict
This skill follows the LCS Chain of Truth protocol at the declared level.