jsdocs
GitHub用于撰写、审查或修复 Effect API 的公共 JSDoc 文档。通过检查声明、实现及测试,遵循特定格式规范(如使用现在时、包含 When to use/Gotchas 等章节)进行精细化文档优化,并运行校验命令确保合规性。
Trigger Scenarios
Install
npx skills add pingdotgg/t3code --skill jsdocs -g -y
SKILL.md
Frontmatter
{
"name": "jsdocs",
"description": "Public API JSDoc. Use when authoring or reviewing Effect API documentation, refining a module's documentation, or fixing documentation related diagnostics."
}
Workflow
- Inspect the declaration, implementation, nearby JSDoc, tests, and call sites.
- Select every applicable branch and load its reference before editing:
- tags, modules, or links: declarations.md;
- categories: categories.md;
- examples: examples.md.
- Make a focused API fix or module refinement. Preserve verified facts and valuable examples rather than rewriting mechanically.
- For module refinement or APIs with close alternatives, audit
@seelinks and inspect implementation and tests for concrete**Gotchas**. - Run
pnpm jsdocs --checkand every applicable root validation command.
@internal declarations and default exports are outside public JSDoc
authoring. Checked files do not support exported enums or empty export
declarations.
Public declarations use a multiline block with one self-contained practical
description paragraph. Start functions and methods with a present-tense action;
match nearby noun-family phrasing for values. Optional non-empty sections appear
once in this order: **When to use**, **Details**, **Gotchas**. Separate
descriptions, sections, examples, and tags with one blank line. **When to use** states a positive use case distinct from the description; reserve
**Gotchas** for concrete caveats and failure modes.
The task is complete when every changed public declaration satisfies each applicable reference, the checker passes, runnable examples pass their targeted doctest, and all other applicable root checks pass or are reported as not run.
Version History
-
5423ba0
Current 2026-09-22 10:57
同步 Effect 和 Alchemy 引用至 rc.115 和 beta.78
- 3faeee4 2026-09-09 05:13
- f2d5fc9 2026-08-19 21:55
- ece0508 2026-07-24 22:03


