Agent Skillsrustfs/rustfs › rustfs-logging-governance

rustfs-logging-governance

GitHub

用于审查和添加 RustFS 追踪事件,规范字段结构、日志级别及隐私边界。通过运行检查脚本确保符合治理规范,防止敏感信息泄露。

.agents/skills/rustfs-logging-governance/SKILL.md rustfs/rustfs

Trigger Scenarios

修改或新增 tracing 宏/日志点 执行日志治理脚本检查

Install

npx skills add rustfs/rustfs --skill rustfs-logging-governance -g -y
More Options

Non-standard path

npx skills add https://github.com/rustfs/rustfs/tree/main/.agents/skills/rustfs-logging-governance -g -y

Use without installing

npx skills use rustfs/rustfs@rustfs-logging-governance

指定 Agent (Claude Code)

npx skills add rustfs/rustfs --skill rustfs-logging-governance -a claude-code -g -y

安装 repo 全部 skill

npx skills add rustfs/rustfs --all -g -y

预览 repo 内 skill

npx skills add rustfs/rustfs --list

SKILL.md

Frontmatter
{
    "name": "rustfs-logging-governance",
    "description": "Add or review RustFS `tracing` events with the repository field shape, level policy, privacy boundaries, and guardrails. Use when a change adds or edits a tracing macro\/instrumentation site or the logging guardrail script."
}

RustFS Logging Governance

Apply this skill only to changed logging sites; do not turn a local log edit into a broad logging cleanup.

Workflow

  1. Read the changed function/module context and classify the site as lifecycle, request/hot path, fallback, external fetch, or summary.
  2. Match neighboring structured events and reuse existing EVENT_*, LOG_COMPONENT_*, and LOG_SUBSYSTEM_* constants.
  3. Put stable fields first (event, component, subsystem, state/result, then context) and a short label last.
  4. Select the level by operational meaning:
    • error: behavior/security-affecting failure;
    • warn: degraded/fallback/operator-actionable state;
    • info: low-frequency lifecycle/mode change;
    • debug: targeted diagnostics;
    • trace: repetitive request/object/shard success paths.
  5. Never log secrets, tokens, auth headers, credential payloads, raw attacker-controlled bodies, or merged config dumps. Error strings and Debug output are log surfaces too.
  6. Prefer one aggregate summary over inventories or startup banners.
  7. Run ./scripts/check_logging_guardrails.sh and the checks selected by root AGENTS.md.

Read logging-governance.md only for a broad logging audit, event-model migration, or guardrail expansion. Ordinary single- site edits do not require the full workspace scope map.

Version History

  • 0fe41da Current 2026-08-29 02:10

    重构工作流程,细化站点分类与字段排序规则;强调隐私安全边界,限制对引用文档的访问范围以优化性能。

  • 0d129ec 2026-08-20 14:32

Same Skill Collection

.agents/skills/adversarial-validation/SKILL.md
.agents/skills/arch-checks/SKILL.md
.agents/skills/code-change-verification/SKILL.md
.agents/skills/plugin-contract-guard/SKILL.md
.agents/skills/pr-creation-checker/SKILL.md
.agents/skills/rust-code-quality/SKILL.md
.agents/skills/rustfs-release-publish/SKILL.md
.agents/skills/rustfs-release-version-bump/SKILL.md
.agents/skills/security-advisory-lessons/SKILL.md
.agents/skills/test-coverage-improver/SKILL.md
.agents/skills/tier-debug/SKILL.md
.mimocode/skills/issue-triage/SKILL.md
.mimocode/skills/pr-review/SKILL.md

Metadata

Files
0
Version
0fe41da
Hash
95f9ac01
Indexed
2026-08-20 14:32

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 21:51
浙ICP备14020137号-1 $Carte des visiteurs$