en un clic
documentation-standards
// Enforces consistent documentation standards for Black Trigram — JSDoc/TSDoc completeness, architecture currency, bilingual Korean-English content, and security documentation updates
// Enforces consistent documentation standards for Black Trigram — JSDoc/TSDoc completeness, architecture currency, bilingual Korean-English content, and security documentation updates
Enforces systematic threat modeling for Black Trigram using STRIDE, MITRE ATT&CK, and attack trees — maintains THREAT_MODEL.md and FUTURE_THREAT_MODEL.md aligned with Hack23 Threat Modeling Policy and Secure Development Policy §3.2
Enforces C4 Architecture Model documentation standards for Black Trigram. Ensures ARCHITECTURE.md, DATA_MODEL.md, FLOWCHART.md, STATEDIAGRAM.md, MINDMAP.md, SWOT.md and their FUTURE_* variants are maintained with strategic, rule-based principles.
Enforces WCAG 2.1 Level AA accessibility for Black Trigram — semantic HTML, ARIA, keyboard navigation, 4.5:1/3:1 contrast, screen reader support, and prefers-reduced-motion for inclusive Korean martial arts gameplay
Enforces AI governance for Black Trigram — transparent and accountable AI-assisted development aligned with Hack23 AI Governance Policy, EU AI Act, NIST AI RMF, and Information Security Policy
Enforces code quality standards for Black Trigram — maintainable, type-safe TypeScript with low complexity, organized imports, explicit error handling, and search-before-create discipline
Enforces data protection at every stage of its lifecycle for Black Trigram — classification, HTTPS/TLS 1.2+, CSP, SRI, minimal retention, aligned with Hack23 Data Classification Policy and GDPR Articles 5, 25, 32
| name | documentation-standards |
| description | Enforces consistent documentation standards for Black Trigram — JSDoc/TSDoc completeness, architecture currency, bilingual Korean-English content, and security documentation updates |
| license | MIT |
Strategic Principle: Great documentation is as important as great code. Document for clarity, maintainability, and knowledge transfer.
Enforce consistent documentation standards across Black Trigram, ensuring code, APIs, architecture, and user guides are well-documented with bilingual Korean-English support.
Reference: Hack23 ISMS Secure Development Policy
IF (exported function, class, interface, or type)
THEN (add JSDoc with @param, @returns, @throws, @example)
ELSE (reject - undocumented public APIs impede maintainability)
IF (modifying component structure OR data models OR system design)
THEN (update relevant C4 architecture documents: ARCHITECTURE.md, DATA_MODEL.md, etc.)
ELSE (documentation drift - refer to c4-architecture-documentation skill)
IF (user-facing text OR Korean martial arts terminology)
THEN (provide both Korean and English with romanization where applicable)
ELSE (incomplete documentation for international audience)
IF (security-related change OR authentication/authorization)
THEN (update SECURITY_ARCHITECTURE.md AND add ISMS policy references)
ELSE (security documentation gap - refer to security-architecture-validation skill)
/**
* Calculates damage multiplier based on trigram stance alignment.
*
* Uses the Eight Trigram (팔괘) opposition system to determine
* effectiveness of attacks between different stances.
*
* @param attackerStance - The attacker's current trigram stance
* @param defenderStance - The defender's current trigram stance
* @returns Damage multiplier between 0.5 (disadvantage) and 2.0 (advantage)
*
* @example
* ```typescript
* const multiplier = calculateStanceMultiplier('geon', 'gon');
* // Returns: 1.5 (Heaven vs Earth advantage)
* ```
*
* @see {@link TrigramStance} for valid stance values
*/
export function calculateStanceMultiplier(
attackerStance: TrigramStance,
defenderStance: TrigramStance,
): number { /* ... */ }
/**
* Represents a vital point (급소) target in the combat system.
*
* @property names - Bilingual names (Korean, English, romanized)
* @property position - 2D coordinates on the character model
* @property category - Anatomical category (neurological, cardiovascular, etc.)
* @property severity - Impact severity level
*/
export interface VitalPoint {
readonly id: string;
readonly names: BilingualText;
readonly position: Position;
readonly category: VitalPointCategory;
readonly severity: VitalPointSeverity;
}
/**
* CombatHUD displays the heads-up display during combat.
*
* Renders player health, ki energy, stance indicator, and
* combat log using Html overlays over the Three.js scene.
*
* @remarks
* Uses KOREAN_COLORS for consistent cyberpunk Korean aesthetic.
* All text is bilingual (Korean | English).
*
* @example
* ```tsx
* <CombatHUD
* player={playerState}
* width={1200}
* height={800}
* isMobile={false}
* />
* ```
*/
| Document | Purpose | Update When |
|---|---|---|
ARCHITECTURE.md | C4 models (Context, Container, Component) | Structure changes |
DATA_MODEL.md | Data structures and relationships | Type changes |
FLOWCHART.md | Business process and data flows | Flow changes |
STATEDIAGRAM.md | System state transitions | State changes |
MINDMAP.md | Conceptual relationships | Concept changes |
SWOT.md | Strategic analysis | Strategy changes |
SECURITY_ARCHITECTURE.md | Security design and controls | Security changes |
FUTURE_*.md | Planned improvements and roadmap | Planning changes |
npm run docs)흑괘의 문서화 - Documentation of the Black Trigram