jsdocs

GitHub

用于编写、审查或修复 Effect 框架公共 API 的 JSDoc 文档。涵盖声明检查、参考加载、API 修正及模块优化,确保文档符合规范并通过校验工具验证。

.repos/effect-smol/.agents/skills/jsdocs/SKILL.md krl-gr/upcomputer

触发场景

编写 API 文档 审查文档质量 修复文档诊断错误

安装

npx skills add krl-gr/upcomputer --skill jsdocs -g -y
更多选项

非标准路径

npx skills add https://github.com/krl-gr/upcomputer/tree/main/.repos/effect-smol/.agents/skills/jsdocs -g -y

不安装直接使用

npx skills use krl-gr/upcomputer@jsdocs

指定 Agent (Claude Code)

npx skills add krl-gr/upcomputer --skill jsdocs -a claude-code -g -y

安装 repo 全部 skill

npx skills add krl-gr/upcomputer --all -g -y

预览 repo 内 skill

npx skills add krl-gr/upcomputer --list

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

  1. Inspect the declaration, implementation, nearby JSDoc, tests, and call sites.
  2. Select every applicable branch and load its reference before editing:
  3. Make a focused API fix or module refinement. Preserve verified facts and valuable examples rather than rewriting mechanically.
  4. For module refinement or APIs with close alternatives, audit @see links and inspect implementation and tests for concrete **Gotchas**.
  5. Run pnpm jsdocs --check and 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.

版本历史

  • 87ba963 当前 2026-10-18 23:19

同 Skill 集合

.agents/skills/contribution-triage/SKILL.md
.agents/skills/test-t3-app/SKILL.md
.agents/skills/test-t3-mobile/SKILL.md
.repos/effect-smol/.agents/skills/ai-docs/SKILL.md
.repos/effect-smol/.agents/skills/bundle-analysis/SKILL.md
.repos/effect-smol/.agents/skills/changesets/SKILL.md
.repos/effect-smol/.agents/skills/ci-maintenance/SKILL.md
.repos/effect-smol/.agents/skills/dependency-maintenance/SKILL.md
.repos/effect-smol/.agents/skills/effect-development/SKILL.md
.repos/effect-smol/.agents/skills/migration-guidance/SKILL.md
.repos/effect-smol/.agents/skills/package-development/SKILL.md
.repos/effect-smol/.agents/skills/performance-analysis/SKILL.md
.repos/effect-smol/.agents/skills/test-development/SKILL.md
.repos/effect-smol/.agents/skills/vendored-assets/SKILL.md

元信息

文件数
0
版本
87ba963
Hash
e85aa367
收录时间
2026-10-18 23:19

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 08:10
浙ICP备14020137号-1