write-code

GitHub

WebUI源码修改工作流,涵盖理解代码、实施变更、强制测试(含回归测试)、更新Changelog及Lint检查,确保行为变更有测试覆盖。

webui/.agents/skills/write-code/SKILL.md eclipse-openvsx/openvsx

Trigger Scenarios

修改或编写WebUI源代码 进行功能性代码变更 修复Bug并需要添加回归测试

Install

npx skills add eclipse-openvsx/openvsx --skill write-code -g -y
More Options

Non-standard path

npx skills add https://github.com/eclipse-openvsx/openvsx/tree/main/webui/.agents/skills/write-code -g -y

Use without installing

npx skills use eclipse-openvsx/openvsx@write-code

指定 Agent (Claude Code)

npx skills add eclipse-openvsx/openvsx --skill write-code -a claude-code -g -y

安装 repo 全部 skill

npx skills add eclipse-openvsx/openvsx --all -g -y

预览 repo 内 skill

npx skills add eclipse-openvsx/openvsx --list

SKILL.md

Frontmatter
{
    "name": "write-code",
    "description": "The workflow for changing webui source code — understand, implement, test, changelog, lint. Use whenever writing or modifying source (not for docs-only edits). Enforces that every behavioral change ships with tests and a changelog entry."
}

Changing webui code

1. Understand

  • Read the files you're about to change in full before wide-ranging edits, and before editing a file you haven't inspected. Don't work from search snippets alone.
  • Check node_modules for external API types instead of guessing.

2. Implement

  • Match the style of the surrounding code.
  • Keep comments short (1–3 lines): state the non-obvious constraint or rationale, never narrate what the code does.
  • Ask before removing functionality that looks intentional. Don't preserve backward compatibility unless asked.

3. Test — required, not optional

Every behavioral change ships with tests. This is a gate, not a nicety:

  • New behavior → add a test for it. Changed behavior → update the affected tests.
  • Bug fix → add a regression test and apply the fail-first check: confirm it goes red without the fix, then restore. A fix without a test that pins it is incomplete.
  • Follow the write-tests skill for setup, layout, and harness patterns.
  • Run the file you touched, then the suite (yarn test); iterate until green.

If a change genuinely has no unit-testable surface (pure styling, config), say so explicitly rather than skipping silently.

Tests are how a change is verified — a passing, fail-first-checked test is the evidence the change works.

4. Changelog

Add an entry for the change under ## [next] in CHANGELOG.md, in the right subsection (### Added / ### Changed / ### Fixed / ### Removed / ### Dependencies) — see AGENTS.md for the format rules. This covers product code; test-only, docs, and tooling changes don't get an entry.

5. Lint

yarn lint (full output, no | tail). Fix every error, warning, and info before considering the change done. Never run yarn smoke-tests unless asked. Never commit unless asked.

Version History

  • 4c33308 Current 2026-08-20 15:09

Same Skill Collection

webui/.agents/skills/migrate-to-tanstack/SKILL.md
webui/.agents/skills/tanstack-query-conventions/SKILL.md
webui/.agents/skills/write-tests/SKILL.md

Metadata

Files
0
Version
4c33308
Hash
a1387937
Indexed
2026-08-20 15:09

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 11:41
浙ICP备14020137号-1 $방문자$