# icurfer/ic-praxis architecture

> Architecture diagram of the GitHub repository icurfer/ic-praxis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/icurfer/ic-praxis
- Repository: https://github.com/icurfer/ic-praxis

## Overview

ic-praxis is a scaffold and local CLI for agent-friendly project practices: it captures decisions, supports task workflows, and turns lessons into commit-time enforcement. The principal workflow is selecting a harness profile, then using its task commands to check development work or reconcile infrastructure tasks; ADR commands are available across profiles. The README also documents the constitution, four-stage docs, shared memory, verification skill, and optional CI gate. Harness source is sampled; those broader scaffold capabilities are documented but their runtime links are not fully shown.

Main entry points: [`templates/scripts/check-conventions.sh`](https://github.com/icurfer/ic-praxis/blob/main/templates/scripts/check-conventions.sh) (Convention checks), [`templates/harness/src/main.mjs`](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/main.mjs) (Profile and command router), [`templates/harness/src/development.mjs`](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/development.mjs) (Development tasks), [`templates/harness/bin/praxis.mjs`](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/bin/praxis.mjs) (Praxis command)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Harness CLI"]
  node_entry["Praxis command<br/>[praxis.mjs]"]
  node_router["Profile and command router<br/>[main.mjs]"]
  node_profile["Profile selection<br/>[main.mjs]"]
end

subgraph group_workflows["Task Workflows"]
  node_dev["Development tasks<br/>[development.mjs]"]
  node_infra["Infrastructure tasks<br/>[infrastructure.mjs]"]
  node_checks["Bounded check runner<br/>[run.mjs]"]
  node_taskstate[("Task records and state<br/>[development.mjs]")]
  node_operations[("Operations records and index<br/>[infrastructure.mjs]")]
end

subgraph group_knowledge["Project Knowledge"]
  node_adr["Decision records<br/>[adr.mjs]"]
  node_constitution["Agent constitution<br/>[CLAUDE.md]"]
  node_docsflow["Four-stage docs"]
  node_memory["Shared memory<br/>[memory]"]
  node_verify["Verify skill<br/>[SKILL.md]"]
end

subgraph group_enforcement["Commit Enforcement"]
  node_hook["Pre-commit hook<br/>[pre-commit]"]
  node_gate["Convention checks"]
  node_workflow["Optional CI gate<br/>[praxis-gate.yml]"]
end

node_user(("Developer or agent"))
node_git(("Git commit"))

node_user -->|"runs commands"| node_entry
node_entry -->|"invokes"| node_router
node_router -->|"selects profile"| node_profile
node_router -->|"dispatches"| node_dev
node_router -->|"dispatches"| node_infra
node_router -->|"dispatches"| node_adr
node_dev -->|"runs checks"| node_checks
node_dev -->|"reads and writes"| node_taskstate
node_infra -->|"reads and writes"| node_operations
node_checks -->|"reports results"| node_user
node_git -->|"triggers"| node_hook
node_hook -->|"runs checks"| node_gate
node_gate -->|"blocks or permits"| node_git
node_workflow -->|"repeats checks"| node_gate
node_constitution -->|"rules become gates"| node_gate
node_docsflow -->|"rules become gates"| node_gate
node_memory -.->|"informs rules"| node_constitution
node_verify -.->|"verifies changes"| node_gate

click node_entry "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/bin/praxis.mjs"
click node_router "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/main.mjs"
click node_profile "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/main.mjs"
click node_dev "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/development.mjs"
click node_infra "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/infrastructure.mjs"
click node_checks "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/run.mjs"
click node_taskstate "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/development.mjs"
click node_operations "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/infrastructure.mjs"
click node_adr "https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/adr.mjs"
click node_constitution "https://github.com/icurfer/ic-praxis/blob/main/templates/CLAUDE.md"
click node_docsflow "https://github.com/icurfer/ic-praxis/tree/main/templates/docs"
click node_memory "https://github.com/icurfer/ic-praxis/tree/main/templates/.claude/memory"
click node_verify "https://github.com/icurfer/ic-praxis/blob/main/templates/.claude/skills/verify-app/SKILL.md"
click node_hook "https://github.com/icurfer/ic-praxis/blob/main/templates/.githooks/pre-commit"
click node_gate "https://github.com/icurfer/ic-praxis/blob/main/templates/scripts/check-conventions.sh"
click node_workflow "https://github.com/icurfer/ic-praxis/blob/main/templates/.github/workflows/praxis-gate.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_router,node_profile toneBlue
class node_dev,node_infra,node_checks,node_taskstate,node_operations toneAmber
class node_adr,node_constitution,node_docsflow,node_memory,node_verify toneMint
class node_hook,node_gate,node_workflow toneRose
class node_user,node_git toneIndigo
```

## Components

### Harness CLI

- [Praxis command](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/bin/praxis.mjs): `templates/harness/bin/praxis.mjs`
- [Profile and command router](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/main.mjs): `templates/harness/src/main.mjs`
- [Profile selection](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/main.mjs): `templates/harness/src/main.mjs`

### Task Workflows

- [Development tasks](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/development.mjs): `templates/harness/src/development.mjs`
- [Infrastructure tasks](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/infrastructure.mjs): `templates/harness/src/infrastructure.mjs`
- [Bounded check runner](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/run.mjs): `templates/harness/src/run.mjs`
- [Task records and state](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/development.mjs): `templates/harness/src/development.mjs`
- [Operations records and index](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/infrastructure.mjs): `templates/harness/src/infrastructure.mjs`

### Project Knowledge

- [Decision records](https://github.com/icurfer/ic-praxis/blob/main/templates/harness/src/adr.mjs): `templates/harness/src/adr.mjs`
- [Agent constitution](https://github.com/icurfer/ic-praxis/blob/main/templates/CLAUDE.md): `templates/CLAUDE.md`
- [Four-stage docs](https://github.com/icurfer/ic-praxis/tree/main/templates/docs): `templates/docs`
- [Shared memory](https://github.com/icurfer/ic-praxis/tree/main/templates/.claude/memory): `templates/.claude/memory`
- [Verify skill](https://github.com/icurfer/ic-praxis/blob/main/templates/.claude/skills/verify-app/SKILL.md): `templates/.claude/skills/verify-app/SKILL.md`

### Commit Enforcement

- [Pre-commit hook](https://github.com/icurfer/ic-praxis/blob/main/templates/.githooks/pre-commit): `templates/.githooks/pre-commit`
- [Convention checks](https://github.com/icurfer/ic-praxis/blob/main/templates/scripts/check-conventions.sh): `templates/scripts/check-conventions.sh`
- [Optional CI gate](https://github.com/icurfer/ic-praxis/blob/main/templates/.github/workflows/praxis-gate.yml): `templates/.github/workflows/praxis-gate.yml`

### Other components

- **Developer or agent**
- **Git commit**

## Connections

- Developer or agent → Praxis command: runs commands
- Praxis command → Profile and command router: invokes (evidence: `templates/harness/bin/praxis.mjs`)
- Profile and command router → Profile selection: selects profile (evidence: `templates/harness/src/main.mjs`)
- Profile and command router → Development tasks: dispatches (evidence: `templates/harness/src/main.mjs`)
- Profile and command router → Infrastructure tasks: dispatches (evidence: `templates/harness/src/main.mjs`)
- Profile and command router → Decision records: dispatches (evidence: `templates/harness/src/main.mjs`)
- Development tasks → Bounded check runner: runs checks (evidence: `templates/harness/src/development.mjs`)
- Development tasks → Task records and state: reads and writes (evidence: `templates/harness/src/development.mjs`)
- Infrastructure tasks → Operations records and index: reads and writes (evidence: `templates/harness/src/infrastructure.mjs`)
- Bounded check runner → Developer or agent: reports results (evidence: `templates/harness/src/run.mjs`)
- Git commit → Pre-commit hook: triggers (evidence: `README.md`)
- Pre-commit hook → Convention checks: runs checks (evidence: `README.md`)
- Convention checks → Git commit: blocks or permits (evidence: `README.md`)
- Optional CI gate → Convention checks: repeats checks (evidence: `README.md`)
- Agent constitution → Convention checks: rules become gates (evidence: `README.md`)
- Four-stage docs → Convention checks: rules become gates (evidence: `README.md`)
- Shared memory → Agent constitution: informs rules (evidence: `README.md`)
- Verify skill → Convention checks: verifies changes (evidence: `README.md`)
