Skip to main content

QorLogic S.H.I.E.L.D. governance skills for Claude Code, Kilo Code, and future AI coding hosts

Project description

QorLogic
S.H.I.E.L.D. Governance for AI Coding Agents

License: BSL-1.1 Skills: 27 Bundles: 5 Agents: 13 Tests: 263 passing Python 3.11+ Ledger Entry 55 Version: 0.9.0


What QorLogic is

A governance framework for AI coding agents (Claude Code, Kilo Code, Codex). It supplies a curated set of skills, agents, and runtime infrastructure that enforce a disciplined SDLC — research, plan, audit, implement, substantiate, validate — with hash-chained evidence, advisory gates, and a process-failure feedback loop.

Built around S.H.I.E.L.D.: Single-purpose, Hash-chained, Idempotent, Explicit, Layered, Delegating.

Why use it

  • Skills name skills. /qor-audit finds a Razor violation → it tells you to run /qor-refactor. No reinvented inline processes. (delegation-table)
  • Long workflows checkpoint and budget. Workflow bundles (multi-skill orchestrators) declare phase budgets and pause for operator review between phases. Context windows stay manageable. (workflow-bundles)
  • Process drift is recorded and acted on. Every gate override, capability shortfall, and degradation lands in an append-only Process Shadow Genome. Threshold breaches auto-trigger remediation. (shadow-process)
  • Token-efficient by default. Repo-root CLAUDE.md drops in terseness rules; full doctrine in qor/references/doctrine-token-efficiency.md.
  • Cryptographic continuity. Every governance decision is appended to docs/META_LEDGER.md as a SHA256-chained entry. python qor/scripts/ledger_hash.py verify validates the entire chain.

Quick start

Drop-in for an existing project

# Copy the canonical skills + agents into your project's Claude Code install
cp -r qor/skills/governance /path/to/your-project/.claude/skills/governance
cp -r qor/skills/sdlc       /path/to/your-project/.claude/skills/sdlc
cp -r qor/skills/memory     /path/to/your-project/.claude/skills/memory
cp -r qor/skills/meta       /path/to/your-project/.claude/skills/meta
cp -r qor/agents/*          /path/to/your-project/.claude/agents/
cp CLAUDE.md                /path/to/your-project/CLAUDE.md

Or consume the variant outputs directly: qor/dist/variants/claude/ (or kilo-code/).

Use a workflow bundle

# In Claude Code (or any harness with QorLogic skills loaded)
/qor-deep-audit-recon       # investigate before acting
/qor-onboard-codebase       # absorb an external repo
/qor-process-review-cycle   # weekly process health check

Bootstrap a new repo

/qor-bootstrap              # creates CONCEPT, ARCHITECTURE_PLAN, META_LEDGER

Architecture

┌─────────────────────────────────────────────────────────┐
│                 QorLogic SSoT (qor/)                     │
│                                                          │
│  skills/ ──┬── governance/   audit, validate, ...        │
│            ├── sdlc/         research, plan, implement   │
│            ├── memory/       status, organize, document  │
│            └── meta/         bootstrap, help, bundles    │
│                                                          │
│  agents/   ── governance, sdlc, memory, meta            │
│  vendor/   ── third-party skills + agents                │
│  scripts/  ── ledger_hash, gate_chain, shadow_process   │
│  gates/    ── chain.md, workflow-bundles.md, schemas    │
│  platform/ ── capability detection + 5 host profiles    │
│  references/  doctrines + patterns                       │
│                                                          │
└──────────────────────┬──────────────────────────────────┘
                       │ compile.py
                       ▼
              ┌────────────────────┐
              │  qor/dist/variants │
              ├────────────────────┤
              │  claude/           │
              │  kilo-code/        │
              │  codex/  (stub)    │
              └────────────────────┘
                       │
                       ▼
                 Consumer projects
                  (.claude/, .kilo/)

Key subsystems

Subsystem Module(s) What it does
Skill execution qor/skills/<category>/ 23 user-invocable skills + 5 workflow bundles
Gate chain qor/scripts/gate_chain.py, session.py Advisory gates between SDLC phases; session-scoped artifacts
Shadow genome qor/scripts/shadow_process.py, check_shadow_threshold.py Append-only process-failure log; threshold-triggered issues
Cross-repo collector qor/scripts/collect_shadow_genomes.py Pool shadow events across repos; consolidated GitHub issue
Platform detection qor/scripts/qor_platform.py Auto-detect host + gh CLI; declare codex-plugin / agent-teams
Compile pipeline qor/scripts/compile.py, check_variant_drift.py Regenerate variants from SSoT; drift detection in CI
Ledger qor/scripts/ledger_hash.py + docs/META_LEDGER.md SHA256-chained governance entries; verify walks the chain

Skill catalog

SDLC chain

Skill Phase Purpose
/qor-research research Investigate before planning
/qor-plan plan Author plan-*.md with phases + tests
/qor-audit audit Adversarial PASS/VETO; Razor → refactor; Orphan/Macro → organize
/qor-implement implement Execute under KISS after PASS
/qor-refactor implement File-internal Section 4 cleanup
/qor-debug (cross-cutting) Root-cause diagnosis on regression
/qor-substantiate substantiate Seal session; Merkle evidence
/qor-validate validate Verify chain + criteria pre-delivery
/qor-remediate (process recovery) Process-level fix; absorbs /qor-course-correct

Memory & meta

Skill Purpose
/qor-status Diagnose lifecycle + next action
/qor-document Update governance docs
/qor-organize Project-level structure
/qor-bootstrap New-workspace DNA seeder
/qor-help Command catalog (you're reading the README; this is the in-skill version)
/qor-repo-audit Repo-level audit
/qor-repo-release Release ceremony
/qor-repo-scaffold New-repo template

Governance & process

Skill Purpose
/qor-shadow-process Append process-failure events

Workflow bundles

Bundle Phases Use when
/qor-deep-audit recon (3) + remediate (3) Pre-release readiness, large tech-debt sweep. Decomposed.
/qor-deep-audit-recon research + synthesize + verify Investigation only; ends at RESEARCH_BRIEF
/qor-deep-audit-remediate plan + implement + validate Action half; consumes RESEARCH_BRIEF
/qor-onboard-codebase research → organize → audit → plan Inheriting / merging an external codebase
/qor-process-review-cycle shadow-sweep → remediate → audit Periodic process health check

Repository layout

Qor-logic/
  qor/                      Single source of truth (edit here)
    skills/<category>/      27 skills + 5 bundles across governance/sdlc/memory/meta
    agents/<category>/      13 qor-scoped agent personas
    vendor/                 Third-party skills + agents (~65 + wshobson collection)
    scripts/                Runtime: ledger, gates, shadow, platform, compile, collector, remediate
    reliability/            Intent Lock, Skill Admission, Gate-to-Skill Matrix (Phase 17)
    gates/                  chain.md, workflow-bundles.md, delegation-table.md, schemas
    platform/               capabilities.md, detect.md, 5 profiles
    references/             doctrines + patterns + examples (incl. doctrine-shadow-genome-countermeasures.md)
    experimental/           non-canonical research
    templates/              doc templates
    dist/variants/          generated outputs (claude, kilo-code, codex stub)
  tests/                    263 tests (unit + integration + e2e + bundle contract)
  docs/                     Plans, ledger, shadow genomes, manifests, archive, security audit
  CLAUDE.md                 Drop-in token-efficiency defaults
  pyproject.toml            Python 3.11+, pytest, jsonschema

Governance model

  1. Every decision is logged. Plans, audits, substantiations land in docs/META_LEDGER.md as SHA256-chained entries. The chain is verifiable: python qor/scripts/ledger_hash.py verify docs/META_LEDGER.md.
  2. Gates are advisory. Skills check for prior-phase artifacts; missing/invalid prompts the user. Override is permitted but logged as a sev-1 gate_override event.
  3. Process failures are append-only. docs/PROCESS_SHADOW_GENOME.md is JSONL; events flow through stale-expiry rules and aged-high-severity self-escalation. Threshold breach (sev sum ≥ 10) triggers /qor-remediate.
  4. Skills delegate explicitly. When /qor-audit finds a Razor violation, it names /qor-refactor. No skill reinvents another skill's process. (delegation-table)
  5. Bundles checkpoint. Multi-phase workflows surface progress between phases for operator decision. No silent runaway.

Development

pip install -e ".[dev]"                                  # install runtime + dev deps
python -m pytest tests/                                  # 154 tests
python qor/scripts/check_variant_drift.py                # SSoT vs dist consistency
python qor/scripts/ledger_hash.py verify docs/META_LEDGER.md  # chain integrity
git config core.hooksPath .githooks                      # one-time hook install

Documentation

License

Business Source License 1.1 (BSL-1.1). Free for non-production use; production deployment requires a commercial license. See LICENSE for details.

Contributing

Skills are authored under qor/skills/<category>/<skill>/SKILL.md (the SSoT). The dist outputs under qor/dist/variants/ are generated — never hand-edit them. The pre-commit hook enforces this; CI drift check is authoritative.

To author a new skill:

  1. Pick a category that fits (governance, sdlc, memory, meta).
  2. Write qor/skills/<category>/<skill-name>/SKILL.md with required frontmatter (name, description, phase, gate_reads, gate_writes).
  3. Add a row to qor/gates/delegation-table.md if your skill is a destination of any other skill's handoff.
  4. Add the skill to /qor-help.
  5. BUILD_REGEN=1 python qor/scripts/compile.py to refresh dist.
  6. Test: python -m pytest tests/.

To author a workflow bundle, follow the same flow plus the metadata schema in qor/gates/workflow-bundles.md. Bundles get covered by tests/test_bundles.py automatically via the contract tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qor_logic-0.13.0.tar.gz (671.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qor_logic-0.13.0-py3-none-any.whl (811.9 kB view details)

Uploaded Python 3

File details

Details for the file qor_logic-0.13.0.tar.gz.

File metadata

  • Download URL: qor_logic-0.13.0.tar.gz
  • Upload date:
  • Size: 671.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qor_logic-0.13.0.tar.gz
Algorithm Hash digest
SHA256 721baf777b25a815944df93df36da68754bfbe04ce59812e7990fb52483454d1
MD5 928f1d746ea65bcbfe758691e8406373
BLAKE2b-256 972528292455eff9033f91447c9253a314204624fbd8ea3f0ee8ebf7799c2ce2

See more details on using hashes here.

Provenance

The following attestation bundles were made for qor_logic-0.13.0.tar.gz:

Publisher: release.yml on MythologIQ-Labs-LLC/Qor-logic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qor_logic-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: qor_logic-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 811.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qor_logic-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df7c245c44a33613d79d4773259ace0af1d39642ee21f07f7b266f6fc8817bed
MD5 f0bc401899cf9c95adeeee7afed99ebc
BLAKE2b-256 275655a2c5b683f9184a033c4a925f79648fbfc4473321682550e92016d5d8be

See more details on using hashes here.

Provenance

The following attestation bundles were made for qor_logic-0.13.0-py3-none-any.whl:

Publisher: release.yml on MythologIQ-Labs-LLC/Qor-logic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page