logics-flow-manager/SKILL.md
Manage this repository's Logics workflow (logics/request -> logics/backlog -> logics/tasks) and keep companion product or architecture refs aligned: create new request/backlog/task docs, promote between stages, keep From version, Understanding, Confidence, and Progress indicators consistent, and generate correctly-numbered filenames. Use when a user asks to triage an idea, write a request, promote it to a backlog item, or create an executable task plan.
npx skillsauth add alexago83/cdx-logics-kit logics-flow-managerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
logics/request/, logics/backlog/, logics/tasks/.logics/product/ for structuring product framing and logics/architecture/ for structuring technical decisions.req_001_my_title.md, item_002_some_scope.md, task_003_do_the_work.md.logics/... or src/..., never absolute filesystem paths such as /Users/....From version: X.X.XStatus: Draft | Ready | In progress | Blocked | Done | Obsolete | ArchivedUnderstanding: ??%Confidence: ??%Progress: ??% (mainly tasks; optionally backlog)Complexity: Low | Medium | HighTheme: Combat | Items | Economy | UI | ...# Context section must include a Mermaid diagram that visualizes the need.flowchart TD or flowchart LR showing inputs, decision points, outputs, and feedback loops.%% logics-signature: ... metadata comments; keep them aligned with the current doc context so stale diagrams can be detected automatically./users/{id}; rewrite them as plain text like users-id route+ to concatenate task names inside labels; rewrite as plain text such as task 1 and task 2If unsure, open logics/instructions.md and follow the workflow described there.
Command examples below use python ... as the canonical cross-platform launcher.
The preferred stable entrypoint is now python logics/skills/logics.py ..., which routes toward the flow manager and adjacent kit commands behind one operator-facing contract.
If your environment only exposes python3 or py -3, substitute that launcher.
Use the generator script (picks the next available ID, creates a file from templates):
python logics/skills/logics.py flow new request --title "Offline recap UI"
python logics/skills/logics.py flow new request --title "Offline recap UI" --fixture
python logics/skills/logics.py flow new backlog --title "Offline recap UI"
python logics/skills/logics.py flow new task --title "Implement offline recap UI"
After creation, run logics-confidence-booster to raise Understanding/Confidence above 90%:
python logics/skills/logics-confidence-booster/scripts/boost_confidence.py logics/request/req_001_example.md
python logics/skills/logics-confidence-booster/scripts/boost_confidence.py logics/backlog/item_002_example.md
python logics/skills/logics-confidence-booster/scripts/boost_confidence.py logics/tasks/task_003_example.md
When a request or backlog item surfaces a structuring product choice, create a product brief before or alongside promotion:
python logics/skills/logics-product-brief-writer/scripts/new_product_brief.py --title "Guest checkout framing" --out-dir logics/product
When a backlog item surfaces a structuring technical choice, create an ADR/DAT:
python logics/skills/logics-architecture-decision-writer/scripts/new_adr.py --title "Choose cache strategy" --out-dir logics/architecture
For backlog/task creation or promotion, the script now auto-detects product and architecture signals and writes a # Decision framing section in generated docs. It stays advisory by default and can auto-create the companion docs when you opt in:
python logics/skills/logics.py flow new backlog --title "Checkout auth migration" --auto-create-product-brief --auto-create-adr
Optional flags:
--from-version 0.14.3--understanding 60% --confidence 40%--status Draft|Ready|In progress|Blocked|Done|Obsolete|Archived--complexity Low|Medium|High --theme UI--progress 0% (task/backlog)--fixture or --smoke-test (request only; generate a compact synthetic request shape)--auto-create-product-brief (backlog/task only; create logics/product/prod_###_*.md when product framing is required)--auto-create-adr (backlog/task only; create logics/architecture/adr_###_*.md when architecture framing is required)--dry-run (show path + content preview, no writes)Create the next-stage doc and link back to the source:
python logics/skills/logics.py flow promote request-to-backlog logics/request/req_001_offline_recap_ui.md
python logics/skills/logics.py flow promote backlog-to-task logics/backlog/item_002_offline_recap_ui.md
For request -> backlog promotion, default to a split-first mindset:
python logics/skills/logics.py flow assist suggest-split <request-ref> --format json when the request spans multiple user flows, delivery surfaces, risks, or acceptance criteria;python logics/skills/logics.py flow split request ... to cover the request with several bounded backlog items;promote request-to-backlog only when the request is already atomic enough to map to one clear backlog slice.The promotion flow seeds more of the next-stage document automatically:
From version, Understanding, Confidence, Complexity, and Theme;Decision framing follow-up text inside the generated doc itself.Split a broad request/backlog item into several executable children:
python logics/skills/logics.py flow split request logics/request/req_001_example.md --title "Slice A" --title "Slice B"
python logics/skills/logics.py flow split backlog logics/backlog/item_002_example.md --title "Task A" --title "Task B"
logics.yaml now drives the default split policy. The shipped default is minimal-coherent, so keep splits to the smallest coherent slice count unless you explicitly pass --allow-extra-slices.
In practice, request coverage still comes first: if a broad request needs several bounded backlog items, keep the slices explicit instead of collapsing them into one or two large items.
Close docs with automatic transition propagation:
python logics/skills/logics.py flow close task logics/tasks/task_003_example.md
python logics/skills/logics.py flow close backlog logics/backlog/item_002_example.md
python logics/skills/logics.py flow close request logics/request/req_001_example.md
When a task is actually finished, prefer the kit-native guarded flow instead of editing indicators manually:
python logics/skills/logics.py flow finish task logics/tasks/task_003_example.md
finish task closes the task, propagates closure to linked backlog/request docs when eligible, verifies that the linked chain stayed synchronized, appends finish/report evidence to the task, and leaves a completion note in linked backlog items. Use close only when you explicitly want the lower-level primitive.
Generated tasks now include explicit wave checkpoints:
python logics/skills/logics.py flow assist commit-all for the commit checkpoint of each meaningful step, item, or wave.When one orchestration task covers multiple backlog items:
- Derived from \...`line per linked backlog item in the task# Links` section;Run workflow coherence audit:
python logics/skills/logics.py audit
python logics/skills/logics.py audit --stale-days 30
python logics/skills/logics.py audit --group-by-doc
python logics/skills/logics.py audit --format json
python logics/skills/logics.py audit --autofix-ac-traceability
python logics/skills/logics.py audit --refs req_001_example
python logics/skills/logics.py audit --paths logics/request logics/backlog
python logics/skills/logics.py audit --since-version 1.9.0
python logics/skills/logics.py flow sync refresh-mermaid-signatures
Use the guarded local dispatcher when you want a local model to propose a workflow action without giving it direct file-write authority:
python logics/skills/logics.py flow sync dispatch-context req_088_add_a_local_llm_dispatcher_for_deterministic_logics_flow_orchestration --include-graph --include-registry
python logics/skills/logics.py flow sync dispatch req_088_add_a_local_llm_dispatcher_for_deterministic_logics_flow_orchestration --model deepseek-coder-v2:16b --include-graph --include-registry
python logics/skills/logics.py flow sync dispatch req_088_add_a_local_llm_dispatcher_for_deterministic_logics_flow_orchestration --decision-file /tmp/dispatcher-decision.json --execution-mode execute
Dispatcher rules:
sync dispatch-context builds a compact machine-readable bundle around context-pack, with optional graph, registry, and doctor summaries.sync dispatch validates a strict decision contract with only new, promote, split, finish, and safe non-destructive sync actions.suggestion-only is the default mode; use --execution-mode execute only when you explicitly want the runner to invoke the mapped Logics command.logics/dispatcher_audit.jsonl unless you override --audit-log.sync build-index refreshes the runtime cache used by repeated context, graph, doctor, validation, and registry operations.sync show-config exposes the effective logics.yaml merge so automation can inspect the active split policy, mutation mode, and cache path.sync refresh-ai-context and sync migrate-schema now support repo-configurable transactional apply-or-rollback semantics and emit JSONL audit records to logics/mutation_audit.jsonl by default.Use the shared hybrid assist runtime when the user asks for repetitive delivery help that should opportunistically use Ollama but still degrade safely:
python logics/skills/logics.py flow assist runtime-status --format json
python logics/skills/logics.py flow assist roi-report --format json
python logics/skills/logics.py flow assist commit-all
python logics/skills/logics.py flow assist summarize-pr --format json
python logics/skills/logics.py flow assist summarize-validation --format json
python logics/skills/logics.py flow assist next-step req_089_add_a_hybrid_ollama_or_codex_local_orchestration_backend_for_repetitive_logics_delivery_tasks --format json
python logics/skills/logics.py flow assist triage req_090_add_high_roi_hybrid_ollama_or_codex_assist_flows_for_repetitive_logics_delivery_operations --format json
python logics/skills/logics.py flow assist handoff req_090_add_high_roi_hybrid_ollama_or_codex_assist_flows_for_repetitive_logics_delivery_operations --format json
Hybrid assist rules:
python ... as the canonical cross-platform launcher;runtime-status is the shared probe surface for plugin, Codex, and Claude integrations;roi-report is the shared observability surface for CLI automation and plugin insights, including explicit measured, derived, and estimated sections;--model-profile qwen-coder when the operator explicitly wants the curated Qwen path instead of the default DeepSeek profile;suggestion-only remains the default unless the operator intent is explicit.Manage legacy per-repository Codex overlays when several repos still need workspace-specific CODEX_HOME projections during migration or troubleshooting:
python logics/skills/logics-flow-manager/scripts/logics_codex_workspace.py register
python logics/skills/logics-flow-manager/scripts/logics_codex_workspace.py sync
python logics/skills/logics-flow-manager/scripts/logics_codex_workspace.py status
python logics/skills/logics-flow-manager/scripts/logics_codex_workspace.py doctor --fix
python logics/skills/logics-flow-manager/scripts/logics_codex_workspace.py run -- codex
python logics/skills/logics-flow-manager/scripts/logics_codex_workspace.py clean
This overlay manager is no longer the primary runtime path. The default model is a globally published kit under ~/.codex, while this legacy flow keeps logics/skills/ canonical in the repo, projects repo-local skills into ~/.codex-workspaces/<repo-id>/, lets repo-local skills shadow same-named global skills, and keeps shared user assets such as auth.json, config.toml, and skills/.system referenced from the primary ~/.codex/ home when available.
After promotion:
flow assist commit-all checkpoint when the AI runtime is active and healthy.prod_### and adr_### refs so downstream docs keep the product and architecture framing visible.Before promotion:
Understanding or Confidence is below 90% in the source doc, run the logics-confidence-booster skill first to clarify and update indicators.logics/product/ and reference it from the source doc before promotion.logics/architecture/ and reference it from the source doc before promotion.data-ai
Generate Logics workflow Mermaid blocks with a deterministic fallback that stays compatible with the flow manager.
testing
Fixture skill used to validate Logics kit package parsing.
testing
--- name: fixture-invalid-skill description: invalid: yaml frontmatter sample --- # Fixture Invalid Skill This fixture intentionally violates the SKILL frontmatter contract.
development
Plan workstreams/roadmap from Logics backlog and tasks. Use when Codex should generate a `logics/ROADMAP.md` grouping items into Now/Next/Later/Done based on priority and progress.