在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用add-lint-rule
星标1
分支0
更新时间2026年4月1日 11:00
Add a new lint rule to the validator
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Add a new lint rule to the validator
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Prepare a new version release with changelog and version bumps
Review code changes for quality, correctness, and style
Guide for writing conventional commits with gitmoji
Create GitHub pull requests with clear titles and structured descriptions. Use when the user asks to open, create, or submit a pull request or PR.
Identify and fix Clippy warnings in Rust code
Run the test suite and report results
| name | add-lint-rule |
| description | Add a new lint rule to the validator |
| license | MIT OR Apache-2.0 |
Guide for adding a new lint rule to skilo.
DiagnosticCode enum| File | Purpose |
|---|---|
src/skill/validator.rs | DiagnosticCode enum, Validator struct |
src/skill/rules/mod.rs | Rule trait, module exports |
src/skill/rules/*.rs | Individual rule implementations |
src/config.rs | Configuration options |
pub trait Rule: Send + Sync {
fn name(&self) -> &'static str;
fn check(&self, manifest: &Manifest) -> Vec<Diagnostic>;
}
pub struct MyRule;
impl Rule for MyRule {
fn name(&self) -> &'static str {
"my-rule"
}
fn check(&self, manifest: &Manifest) -> Vec<Diagnostic> {
// Validation logic here
Vec::new()
}
}
For threshold-based rules, use Threshold type:
// In config.rs
#[serde(deserialize_with = "deserialize_threshold")]
pub my_rule: Threshold,
// In validator.rs
if let Some(max) = config.rules.my_rule.resolve(DEFAULT) {
rules.push(Box::new(MyRule::new(max)));
}