一键导入
coding-standards
Load perl-lsp coding standards for code-writing or code-review work in this repo. Use when implementing, fixing, reviewing, or validating code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Load perl-lsp coding standards for code-writing or code-review work in this repo. Use when implementing, fixing, reviewing, or validating code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | coding-standards |
| description | Load perl-lsp coding standards for code-writing or code-review work in this repo. Use when implementing, fixing, reviewing, or validating code. |
| user-invocable | false |
This skill is the full on-demand coding standards reference for agents. Hooks may inject a condensed summary automatically, but that Layer 0 context is not a replacement for the complete standards below.
unwrap(), expect() → use ?, .ok_or_else(), or pattern matchingpanic!(), todo!(), unimplemented!() → return Result/Optiondbg!() → use tracing::debug!std::process::abort() → neverstd::process::exit() → only in bin/ directories and lifecycle.rs#[allow(clippy::expect_used)] in crates/perl-lsp/src/util/uri.rsOption<Regex> with .ok() for graceful degradation[T; N] for compile-time guarantees.first() over .get(0).push(char) not .push_str("x") for single charsor_default() not or_insert_with(Vec::new).clone() on Copy typesResult<()> from tests, or use perl_tdd_support::must / must_sometest_<what>_<scenario>_<expected>RUST_TEST_THREADS=2 cargo test -p perl-lsp -- --test-threads=2type(scope): descriptionfix, feat, test, docs, chore, perf, refactorRun cargo fmt --all && cargo clippy -p <crate> --tests -- -D warnings && cargo test -p <crate>
Escalate to nix develop -c just ci-gate for changes spanning 3+ crates.
git add files you intentionally created or modifiedgit add -A or git add .Cargo.lock unless dependencies changed.claude/ infrastructure files unless that is the taskdocs/project/CURRENT_STATUS.mdscripts/.ignored-baselinegit diff --cached --name-onlyfile_index.references.entry(bare_name.to_string()).or_default().push(symbol_ref.clone());
file_index.references.entry(qualified).or_default().push(symbol_ref);
Merge approved PRs in safe batches — checks CI, fixes policy failures, handles conflicts, ratchets corpus after parser merges.
Run a TDD parser-fix workflow for perl-parser-core or related parser crates. Use when a parser bug has a concrete failing construct and needs tests, a minimal fix, and verification.
Turn a discovery into a builder-ready handoff packet. Use when a scout or coordinator has identified a concrete slice and needs exact scope, verification, and routing rather than code changes.
Research-first workflow that scouts exact scope before launching a constrained builder. Use when a feature or fix is too unconstrained for a direct builder — converts ~50% success into ~90% by eliminating implicit decisions.
Load roadmap weighting for scouts and coordinators so slices are ranked by actual repo priorities instead of convenience.
Load shared swarm behavioral rules for coordinators and workers. Use for task routing, receipts, direct messaging, dedup, worktree boundaries, and lifecycle discipline.