pcl-assertion-workflow skill to create a local assertion project in an existing protocol repository and verify it with pcl.
Prerequisites
Before you begin, make sure you have:- Completed the Agentic PCL setup
pclinstalled- A Foundry-based protocol repository
- Written definitions of the invariants you want to protect
1. Start the agent in the protocol repository
Give the agent access to the repository that contains the protocol contracts. Do not give it deployment credentials for this task; project creation and testing are local operations. Ask it to inspect the existing Foundry configuration, dependency layout, contracts, tests, and invariant documentation before proposing changes.2. Request the project
Use a prompt like this:3. Review the proposed invariants
Before allowing implementation, confirm that each proposed assertion:- Protects a security-relevant property
- Observes external state rather than duplicating a local
require - Names the contracts and state transitions it covers
- Has a narrow trigger strategy
- Can be exercised by both passing and failing tests
4. Review the generated project
The exact structure should follow the host repository, but a typical result includes:foundry.toml, remappings.txt, or dependency files. Review those changes for overlap with existing profiles and remappings.
5. Verify the project
Give the agent this verification prompt:- Which assertion functions executed
- Which protected calls were tested
- How each negative test proves the assertion invalidates a transaction
- Any invariant or execution path that remains untested
6. Prepare for deployment
Before handing the project to a deployment agent:- Commit or otherwise preserve the reviewed local changes
- Confirm that
assertions/credible.tomlnames every protected contract and assertion - Decide on staging or production
- Identify the target chain and protocol manager wallet

