ワンクリックで
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).