Файли
openidea/CONTRIBUTING.md
T
l0ng-ai 9443517d1c docs: restore AGENTS.md and add PR evidence rules with a pr skill (#7498)
Restore AGENTS.md (CLAUDE.md links to it) and the verify skill, and add a pr skill covering scope, checks to run, the evidence each kind of change needs and a UX consistency review against DESIGN.md and PRODUCT.md.

The PR template lists evidence by change type, and the PR check also asks for screenshots or a recording when a PR changes UI files under src/, unless the description says "No visible change".
2026-12-02 17:50:30 +08:00

2.6 KiB

Contributing to OpenIDEA

These rules apply to everyone, and to any coding agent working on their behalf. Project layout, coding rules, commands, checks and the evidence a PR needs are in AGENTS.md.

Issues

  • One problem or request per issue. Use the issue forms.
  • Bugs: steps that reproduce the problem from a fresh start. A minimal sample project is the fastest way to get a fix.
  • Features: state the problem and the acceptance criteria. A feature is ready to build once a maintainer labels it planned.
  • Labels track status: needs-info waits on the reporter, needs-decision waits on a maintainer, planned is accepted, needs-acceptance has a fix waiting to be checked.

Pull requests

  • One problem per PR. If it resolves an issue, link it with Closes #123.
  • Reproduce the problem first, or write a test that fails before the fix.
  • Fix the cause, and check whether the same cause breaks anything nearby.
  • Keep the diff focused. Unrelated refactors go in their own PR.
  • Title: Conventional Commits, e.g. fix(editor): keep the caret visible after folding.
  • Fill in the template. Keep the description short and in plain words. If it doesn't fit in a few sentences, the PR is probably too big.
  • How it was verified is required: the commands you ran and their results, and what else the change could affect. Changes to what users see need before/after screenshots; multi-step interactions need a recording. UI that goes away with a removed feature, copy-only and non-visual changes don't; write "No visible change" and say what you checked instead. AGENTS.md lists the evidence for each kind of change (tests, smoke output, perf numbers, real-machine logs…).
  • Changes to what users see follow DESIGN.md and the existing UI: tokens, src/ui/ primitives, both themes, keyboard access. Restructuring a layout or navigation needs a maintainer's decision first.
  • If a change needs a product decision you can't make, ask in the issue and stop rather than guessing.

Plugins: pull requests here add or change official plugins (plugins/official/) and the plugin API. Community plugins live in their authors' repositories and are listed through l0ng-ai/openidea-plugins; see plugins/README.md § 8.1.

A check on each PR adds needs-info when the verification section is missing, or when the PR changes UI files and the section has neither a screenshot nor a recording nor "No visible change". It removes the label once that's fixed.