AGENT SKILL

quality-layer-control

Toggle quality disciplines (ADR Gate, docs-as-definition-of-done, etc.) on or off globally

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 25
Forks
4

01 前言 Front Matter

name
quality-layer-control
type
domain
claim
{ "references": [] }
description
Toggle quality disciplines (ADR Gate, docs-as-definition-of-done, etc.) on or off globally

03 SKILL.md 正文

Quality Layer Control

Manage which quality disciplines are active in your CorvinOS sessions.

Run every command below from the root of the CorvinOS checkout: the package is corvin_operator, not operator (that name is the Python standard library, so from operator.bridges... fails with ModuleNotFoundError). The same switches are on the console's LDD page (/console/app/ldd). Switching adr_gate or concept_gate changes whether the gate is applied, never how its artifacts are judged: both write through kb.py new and are judged by kb check (see the shared mechanism in those two skills).

Available Commands

Check status:

python3 -c "from corvin_operator.bridges.shared.quality_layers import get_status, list_layers; import json; print(json.dumps(get_status(), indent=2))"

Or simpler — to list all layers:

python3 -c "from corvin_operator.bridges.shared.quality_layers import list_layers; import json; print(json.dumps(list_layers(), indent=2))"

Enable a specific layer:

python3 -c "from corvin_operator.bridges.shared.quality_layers import enable_layer; enable_layer('adr_gate'); print('✓ adr_gate enabled')"

Disable a specific layer:

python3 -c "from corvin_operator.bridges.shared.quality_layers import disable_layer; disable_layer('adr_gate'); print('✓ adr_gate disabled')"

Enable all layers:

python3 -c "from corvin_operator.bridges.shared.quality_layers import enable_all; enable_all(); print('✓ All quality layers enabled')"

Disable all layers:

python3 -c "from corvin_operator.bridges.shared.quality_layers import disable_all; disable_all(); print('✓ All quality layers disabled')"

Configuration File

Settings are stored in ~/.corvin/global/quality-layers.json. You can also edit it directly:

{
  "enabled": true,
  "layers": {
    "adr_gate": true,
    "docs_as_definition_of_done": true,
    "e2e_driven_iteration": true,
    "usability_first": true
  }
}
  • enabled: true — quality layers are active globally
  • enabled: false — all layers are suppressed (but config is preserved)
  • Per-layer toggles: individual disciplines can be on or off

Behavior

Fail-safe defaults:

  • If quality-layers.json doesn't exist, all layers are ON (fail-open)
  • If a new layer is not listed, it defaults to ON
  • If globally disabled (enabled: false), all layers are OFF

When does this take effect?

  • New Claude Code sessions load the config at startup
  • Existing sessions may not reflect changes until restart
  • Changes are immediately persistent (file is written)

Typical Workflows

Turn off ADR Gate (e.g., for quick prototyping):

python3 -c "from corvin_operator.bridges.shared.quality_layers import disable_layer; disable_layer('adr_gate'); print('✓ adr_gate disabled')"

Check which layers are on:

python3 -c "from corvin_operator.bridges.shared.quality_layers import list_layers; import json; [print(f'{k}: {v}') for k,v in list_layers().items()]"

Reset to all defaults: Delete ~/.corvin/global/quality-layers.json — next session loads defaults.

04 同仓库更多 Skills