원클릭으로
annotation-writer
Write correct @spec JSDoc annotations in TypeScript/JavaScript source files to link code to specgraph spec documents.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Write correct @spec JSDoc annotations in TypeScript/JavaScript source files to link code to specgraph spec documents.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyse specgraph verify output and identify what evidence is missing to advance specs to their next state.
Write specgraph spec documents with correct YAML frontmatter, evidence requirements, and section structure.
Interpret the output of `specgraph verify` and explain what each status means and what to do next.
Write a specgraph evidence waiver for a spec requirement that cannot currently be satisfied, with a clear justification and expiry plan.
| name | annotation-writer |
| description | Write correct @spec JSDoc annotations in TypeScript/JavaScript source files to link code to specgraph spec documents. |
Add @spec annotations to source files so specgraph's AnnotationProvider can scan them and produce E0 evidence.
/**
* @spec SPEC-ID @implements ComponentName
*/
Or inline:
/** @spec SPEC-ID @implements ComponentName */
Multiple specs on one component — use separate blocks:
/** @spec AUTH-001 @implements TokenValidator */
/** @spec AUTH-002 @implements SessionStore */
export class AuthService { ... }
| Annotation | Evidence relation | Use when |
|---|---|---|
@implements | IMPLEMENTS | This code directly implements the spec |
@verifies | VERIFIED_BY | This is a test that verifies the spec |
@satisfies | IMPLEMENTS | Alias for @implements |
export if the whole file implements one spec.@verifies on test functions or describe blocks./**
* Validates a JWT token and returns the decoded payload.
* @spec AUTH-001 @implements TokenValidator
*/
export function validateToken(token: string): Payload { ... }
/**
* @spec TASK-003 @verifies TodoFiltering
*/
describe('todo filters', () => { ... });
/**
* @spec API-002 @implements RateLimiter
*/
module.exports.rateLimiter = function(req, res, next) { ... };
id: field).@spec tag — do not chain multiple @spec tags in one block.ComponentName after @implements is free text — use something meaningful to the reader.specgraph verify to confirm the claims are detected.annotationProvider.extensions in .specgraph/config.json (defaults: .ts, .js, .tsx, .jsx, .mjs, .cjs).