Levyra real-engineering workflow
SkillDev toolsRoute non-trivial Levyra engineering through the Matt Pocock real-engineering workflow. Use automatically for features, architectural changes, bugs, test/build failures, regressions, unexpected behavior, multi-step work, or requests that risk AI slop when root-cause investigation, specification, focused implementation, or independent review is useful; skip the ceremony for tiny obvious edits.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Levyra real-engineering workflow skill
What this skill tells your AI
The instructions your AI receives, as published by luc4n3x/levyra-deepsound in .agents/skills/levyra-real-engineering/SKILL.md and read by ahel’s review.
This skill adapts Matt Pocock's mattpocock/skills engineering workflow to Levyra. It is a routing layer, not a second project contract.
Precedence
Always follow, in order:
- root and nearest
AGENTS.mdfiles; - owner-approved requirements and active planning;
- matching
levyra-*domain skills; - current implementation, tests, architecture, and workflows;
- Matt Pocock engineering skills when installed.
If an external skill conflicts with Levyra, Levyra wins. Never create a second source of truth, a parallel cache/store/controller, or extra architecture merely because an external skill suggests one.
Choose the lightest useful lane
Do not run the full pipeline for a typo, one-line build fix, obvious null check, narrow documentation correction, or another change whose behavior and scope are already unambiguous. For those, use the normal Levyra work method and focused validation.
For non-trivial work:
0. Evidence and reuse before invention
Before adding a new abstraction, helper, dependency, workflow, cache, store, controller, parser, or architectural layer:
- search Levyra first for the existing owner, working pattern, nearby implementation, or reusable primitive;
- compare the broken/new path with at least one working local path when one exists;
- when behavior depends on a versioned external API, library, plugin, or platform rule, verify current primary documentation instead of trusting remembered behavior;
- prefer adapting a proven local implementation over importing a generic framework pattern;
- treat third-party repositories and skill catalogs as evidence and inspiration, never as authority over Levyra's codebase;
- add a dependency only when the existing stack cannot reasonably satisfy the requirement and the maintenance, security, binary-size, and compatibility cost is justified.
Do not turn this into mandatory broad web research for trivial work. The goal is to prevent needless reinvention and stale assumptions, not to add ceremony.
1. Ambiguous product or architecture: grill-with-docs
Use when requested behavior, trade-offs, ownership, compatibility, or user-visible outcome is genuinely unclear.
- Inspect the repository first and answer codebase questions from evidence instead of asking the owner.
- Ask only decisions that cannot be resolved from the repository.
- Maintain shared vocabulary only when genuinely reusable.
- Record an ADR only for a durable architectural decision with a real trade-off and meaningful reversal cost.
- Stop once the implementation contract is clear.
2. Large unknown problem: wayfinder
Use before spec work when several product/architecture decisions remain unresolved. Resolve the decision map before writing a spec.
3. Settled intent: to-spec
A Levyra spec states desired behavior/non-goals, preserved behavior, architecture ownership/reuse, relevant security/lifecycle/persistence/concurrency/localization/compatibility implications, acceptance criteria, and focused/manual validation.
Do not invent requirements that the owner did not approve.
4. Work too large for one reviewable change: to-tickets
Split into independently reviewable vertical slices. Each ticket carries scope, preserved behavior, dependencies, acceptance criteria, relevant owners/files, and validation. Publishing GitHub issues still requires explicit owner authorization.
5. Implementation: implement + tdd
Implement one ticket or one reviewable phase at a time.
- Start from a fresh context for a new independent ticket when practical.
- Read applicable Levyra domain skills before editing.
- For defects, establish a concrete failing path first; use
diagnosing-bugswhen root cause is unclear. - Prefer red -> green -> refactor where deterministic tests are useful.
- Test externally observable behavior and durable contracts rather than incidental implementation details when possible.
- Do not force artificial tests around trivial declarative changes.
- Make the smallest coherent change and avoid unrelated cleanup.
Hypothesis-driven debugging
Use this closed loop:
reproduce -> isolate -> hypothesis -> smallest experiment -> fix -> prevent
- Reproduce/capture the failing path and complete relevant evidence.
- Trace the bad state/value backward to the first failed assumption or contract.
- Compare with a nearby working path when available.
- State one concrete root-cause hypothesis and supporting evidence.
- Test it with the smallest experiment/change; do not stack several speculative changes into one experiment.
- If it fails, revert/discard the speculative change, mark the hypothesis
DISPROVED, and stop using it downstream. - Once supported, add the smallest deterministic regression evidence, apply the root-cause fix, and rerun relevant broader checks.
- Prevent recurrence with the narrowest useful test, invariant, validator, or ownership clarification; do not create generic infrastructure for a one-off mistake.
Keep the current hypothesis state explicit when the investigation is long: CANDIDATE, SUPPORTED, VALIDATED, or DISPROVED. If later evidence invalidates a previously supported conclusion, retract it explicitly rather than silently leaving old reasoning in handoffs, comments, or review summaries.
After three materially different failed hypotheses, reassess the ownership boundary and reproduction evidence instead of stacking more guesses.
Test and check failure classification
Before reacting to a failed test/build/lint/runtime check, classify the failure using the best available evidence:
PRODUCT_REGRESSION: the implementation violates the expected behavior;TEST_DEFECT: the test/fixture/assertion is stale or incorrect;ENVIRONMENT: tooling, network, service, device, permission, or CI infrastructure prevented a valid result;FLAKY: the same code/input/environment can legitimately produce intermittent pass/fail behavior and there is evidence of nondeterminism;UNKNOWN: evidence is insufficient to classify yet.
Do not rerun an unchanged failing command repeatedly to fish for a green result. A retry is evidence only when it tests an environment/flakiness hypothesis; preserve the original failure and compare both runs. Never relabel a failure as flaky merely because a retry passed once.
6. Mandatory pre-delivery review: code-review
Every code-bearing task has a final review gate. After drafting or applying the code, but before presenting it as the solution, handing it off, committing it, or calling implementation complete:
- run the exact upstream
code-reviewskill when the runtime provides it; - otherwise run the equivalent
code-reviewstage through this Levyra adapter; - review the actual final diff/code, not the plan or intended patch;
- check correctness, regression risk, architecture fit, tests, security, lifecycle/concurrency, performance, duplication, speculative abstraction, and unrelated churn;
- fix actionable findings before delivery, then review the corrected final diff again when the fix changed behavior materially.
For Claude Code, invoke /code-review or the installed code-review skill before code delivery. Codex, ChatGPT, Antigravity, and compatible runtimes must explicitly invoke/load the code-review stage even if their UI has no slash command.
Do not run this gate before code exists merely to satisfy the name. The purpose is to prevent unreviewed generated code from leaving the implementation loop.
Use levyra-pr-review additionally for branch/commit/PR review. Matt's code review supplements Levyra's repository review contract; it does not replace tests or the quality gate.
External skill availability
When Matt Pocock's skills are installed, load the exact matching external skill for the stage instead of paraphrasing it from memory:
grill-with-docswayfinderto-specto-ticketsimplementtdddiagnosing-bugscode-reviewdomain-modelingwhen vocabulary/ADRs are actually relevant
Do not assume one skill can invoke another across every runtime. Codex, ChatGPT, Antigravity, and other harnesses should explicitly load the required stage skill when their runtime does not support Claude-style nested skill invocation.
If the external package is unavailable, follow this Levyra adapter rather than blocking ordinary work, and report that the upstream skill body was not available.
Context and handoff discipline
- Keep the current ticket/phase small enough to review.
- Prefer fresh context between independent tickets and an independent context for final review when supported.
- Carry forward only the approved spec/ticket, relevant architecture/invariants, exact changed files or diff/commit, direct validation evidence, current hypothesis/finding state, and unresolved blockers.
- Do not carry a disproved hypothesis or stale finding into a fresh context as an unresolved fact.
- Prefer durable existing artifacts over duplicate memory/recap documents.
- When a session must compact/restart, summarize verified facts and open decisions, not exploratory chatter or superseded hypotheses.
- Current repository evidence overrides remembered conversation context or older handoffs.
Skill-intelligence discipline
When an external skill or catalog is proposed as an improvement, follow docs/ai/SKILL_INTELLIGENCE.md. Prefer adapting a useful method into the existing owner skill over adding another always-discoverable skill. Route changes require positive and near-miss evaluation, and increased token/tool cost must buy a material improvement in correctness, validation, review quality, or scope control.
Publication and quality gates
Before commit:
python3 scripts/ai_quality_gate.py --profile fast
Before push or pull-request publication:
python3 scripts/ai_quality_gate.py --profile full
When opening or updating a pull request, use the complete
.github/pull_request_template.md schema and fill it from current evidence.
Keep blocked or unperformed checks explicit and unmarked. Apply
levyra-humanizer in embedded mode as the final prose pass, then verify that it
did not add, remove, or strengthen any implementation or validation claim.
Commit, push, pull request, merge, tag, release, deployment, version changes, and repository settings remain owner-controlled exactly as defined by AGENTS.md.
Provenance
The debugging/test refinements are selectively informed by the reproduce/isolate/hypothesis/prevention discipline in Jeffallan/claude-skills. They are rewritten for Levyra and do not import that catalog's generic toolchain assumptions or skill inventory.
Signals
- GitHub stars
- 164
- Forks
- 1
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
levyra-real-engineering- Source
- github.com/luc4n3x/levyra-deepsound