assertion-troubleshooting
Phylax Credible Layer assertions troubleshooting. Diagnoses common assertion failures and non-triggering issues. Use when phylax/credible layer assertions fail unexpectedly or do not execute.
Best use case
assertion-troubleshooting is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Phylax Credible Layer assertions troubleshooting. Diagnoses common assertion failures and non-triggering issues. Use when phylax/credible layer assertions fail unexpectedly or do not execute.
Teams using assertion-troubleshooting should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/assertion-troubleshooting/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How assertion-troubleshooting Compares
| Feature / Agent | assertion-troubleshooting | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Phylax Credible Layer assertions troubleshooting. Diagnoses common assertion failures and non-triggering issues. Use when phylax/credible layer assertions fail unexpectedly or do not execute.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Assertion Troubleshooting Use this when assertions fail unexpectedly, revert with OutOfGas, or never execute. ## Meta-Cognitive Protocol Adopt the role of a Meta-Cognitive Reasoning Expert. For every complex problem: 1.DECOMPOSE: Break into sub-problems 2.SOLVE: Address each with explicit confidence (0.0-1.0) 3.VERIFY: Check logic, facts, completeness, bias 4.SYNTHESIZE: Combine using weighted confidence 5.REFLECT: If confidence <0.8, identify weakness and retry For simple questions, skip to direct answer. Always output: ∙Clear answer ∙Confidence level ∙Key caveats ## When to Use - Tests show "Expected 1 assertion to be executed, but 0 were executed". - Assertions revert with `OutOfGas` or unknown reasons. - Call inputs appear empty or duplicate. ## When NOT to Use - You need invariant design. Use `designing-assertions`. - You need implementation details. Use `implementing-assertions`. - You need test strategy or fuzzing. Use `testing-assertions`. ## Quick Start 1. Confirm trigger selector matches the target function. 2. Ensure `cl.assertion()` is immediately before the target call; the next external call consumes it. 3. Check if the target call reverted before assertions ran. 4. Verify cheatcodes are used in assertion functions, not constructors (`ph.load`, not `vm.load`). 5. Remember internal Solidity calls are not traced; triggers only fire on external entrypoints. 6. Use `pcl test -vvvv` for full traces and gas diagnostics. 7. Confirm `FOUNDRY_PROFILE=assertions` when running `pcl test`. 8. <u>Use `pcl test` for assertion tests because it includes the `cl.addAssertion` cheatcode; use `forge test` only for regular protocol tests.</u> 9. If the failure is `CreateContractSizeLimit`, split assertions into smaller contracts. 10. If the failure is an empty revert or ABI decode panic, re-check call input decoding (call inputs exclude selectors). ## Rationalizations to Reject - "The assertion should have run." Verify triggers and call order first. - "It is probably a test issue." Validate the target call succeeds without assertions. - "Gas is fine." Happy path often consumes the most gas. ## References - [Common Errors and Fixes](references/common-errors.md)
Related Skills
Assertion Helper
Guide for writing effective test assertions with clear, meaningful error messages across different testing frameworks
assertion-design
SystemVerilog Assertions (SVA) as executable specifications. Use when defining timing requirements, protocol specifications, or formal properties for RTL verification.
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
moai-lang-{{LANGUAGE_SLUG}}
{{LANGUAGE_NAME}} best practices with modern frameworks, {{PRIMARY_DOMAIN}}, and performance optimization for 2025
moai-lang-elixir
Elixir 1.17+ development specialist covering Phoenix 1.7, LiveView, Ecto, and OTP patterns. Use when developing real-time applications, distributed systems, or Phoenix projects.
moai-lang-csharp
Enterprise C# 13 development with .NET 9, async/await, LINQ, Entity Framework Core, ASP.NET Core, and Context7 MCP integration for modern backend and enterprise applications.
moai-foundation-memory
Persistent memory across sessions using MCP Memory Server for user preferences, project context, and learned patterns
moai-domain-frontend
Enterprise Frontend Development with AI-powered modern architecture, Context7 integration, and intelligent component orchestration for scalable user interfaces
moai-context7-lang-integration
Enterprise-grade Context7 MCP integration patterns for language-specific documentation access with real-time library resolution and intelligent caching
moai-cc-permission-mode
Claude Code permission configuration and policy management strategies for enterprise security. Covers permission modes, tool access control, whitelist/blacklist patterns, and enterprise deployment best practices.
moai-baas-cloudflare-ext
Enterprise Cloudflare Edge Platform with AI-powered edge computing architecture, Context7 integration, and intelligent global orchestration for scalable modern applications
moai-baas-clerk-ext
Enterprise Clerk Authentication Platform with AI-powered modern identity architecture, Context7 integration, and intelligent user management orchestration for scalable applications