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
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-auditfinds 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.mddrops in terseness rules; full doctrine inqor/references/doctrine-token-efficiency.md. - Cryptographic continuity. Every governance decision is appended to
docs/META_LEDGER.mdas a SHA256-chained entry.python qor/scripts/ledger_hash.py verifyvalidates 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
- Every decision is logged. Plans, audits, substantiations land in
docs/META_LEDGER.mdas SHA256-chained entries. The chain is verifiable:python qor/scripts/ledger_hash.py verify docs/META_LEDGER.md. - Gates are advisory. Skills check for prior-phase artifacts; missing/invalid prompts the user. Override is permitted but logged as a sev-1
gate_overrideevent. - Process failures are append-only.
docs/PROCESS_SHADOW_GENOME.mdis JSONL; events flow through stale-expiry rules and aged-high-severity self-escalation. Threshold breach (sev sum ≥ 10) triggers/qor-remediate. - Skills delegate explicitly. When
/qor-auditfinds a Razor violation, it names/qor-refactor. No skill reinvents another skill's process. (delegation-table) - 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
docs/SYSTEM_STATE.md— current snapshot of the file tree + ledger headdocs/SKILL_REGISTRY.md— category-organized skill indexdocs/META_LEDGER.md— hash-chained governance log (20 entries sealed)qor/gates/chain.md— SDLC phase sequence + per-phase reads/writesqor/gates/delegation-table.md— explicit handoff matrixqor/gates/workflow-bundles.md— bundle metadata + checkpoint protocolqor/references/doctrine-token-efficiency.md— long-session rulesdocs/Lessons-Learned/— postmortems and corrections
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:
- Pick a category that fits (governance, sdlc, memory, meta).
- Write
qor/skills/<category>/<skill-name>/SKILL.mdwith required frontmatter (name,description,phase,gate_reads,gate_writes). - Add a row to
qor/gates/delegation-table.mdif your skill is a destination of any other skill's handoff. - Add the skill to
/qor-help. BUILD_REGEN=1 python qor/scripts/compile.pyto refresh dist.- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
721baf777b25a815944df93df36da68754bfbe04ce59812e7990fb52483454d1
|
|
| MD5 |
928f1d746ea65bcbfe758691e8406373
|
|
| BLAKE2b-256 |
972528292455eff9033f91447c9253a314204624fbd8ea3f0ee8ebf7799c2ce2
|
Provenance
The following attestation bundles were made for qor_logic-0.13.0.tar.gz:
Publisher:
release.yml on MythologIQ-Labs-LLC/Qor-logic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qor_logic-0.13.0.tar.gz -
Subject digest:
721baf777b25a815944df93df36da68754bfbe04ce59812e7990fb52483454d1 - Sigstore transparency entry: 1322398480
- Sigstore integration time:
-
Permalink:
MythologIQ-Labs-LLC/Qor-logic@b973427962e982e287ced13a37cfa2540583d617 -
Branch / Tag:
refs/tags/v0.13.0 - Owner: https://github.com/MythologIQ-Labs-LLC
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b973427962e982e287ced13a37cfa2540583d617 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df7c245c44a33613d79d4773259ace0af1d39642ee21f07f7b266f6fc8817bed
|
|
| MD5 |
f0bc401899cf9c95adeeee7afed99ebc
|
|
| BLAKE2b-256 |
275655a2c5b683f9184a033c4a925f79648fbfc4473321682550e92016d5d8be
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qor_logic-0.13.0-py3-none-any.whl -
Subject digest:
df7c245c44a33613d79d4773259ace0af1d39642ee21f07f7b266f6fc8817bed - Sigstore transparency entry: 1322398590
- Sigstore integration time:
-
Permalink:
MythologIQ-Labs-LLC/Qor-logic@b973427962e982e287ced13a37cfa2540583d617 -
Branch / Tag:
refs/tags/v0.13.0 - Owner: https://github.com/MythologIQ-Labs-LLC
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b973427962e982e287ced13a37cfa2540583d617 -
Trigger Event:
push
-
Statement type: