agentsclimarketplace

Foundry git workflow

Skill dor-rondel/agent-skills-mcp/resources/solidity/foundry-git-workflow

mcp server serving coding agent skills with helper tools

Install
npx -y skills add dor-rondel/agent-skills-mcp --skill foundry-git-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use this skill when running local pre-commit checks (compile, format, test), analyzing contract changes, committing smart contract updates, or pushing to GitHub.

SKILL.md

2.3 KB, as published. Nobody here has run it

Web3 Git Commit & Push Workflow

This skill hooks the Forge smart contract development verification directly into the Git workflow, ensuring no broken Solidity code or unformatted contracts get pushed to the remote repository.

๐Ÿ› ๏ธ Toolchain Prerequisites

  • EVM Framework: forge (Foundry)
  • Project Root: Run all commands from the directory containing foundry.toml.

๐Ÿƒโ€โ™‚๏ธ Step 1: Pre-Commit Contract Verification

Execute these verification checks in order. Stop the workflow immediately if any check fails.

StepTaskCommandTarget / Standard
1Code Formattingforge fmtEnforces Solidity style guide layouts
2Contract Compilationforge buildVerifies the code compiles without errors
3Smart Contract Testsforge testExecutes local unit and integration tests

๐Ÿ” Step 2: Stage & Diff Analysis

Once the code passes all local Forge checks, review exactly what changes are being prepared for the commit.

  1. Check Workspace Status:
git status
  1. Stage Changes:
git add .
  1. Review Staged Changes: Run the following command to review the precise lines added or modified in the contracts:
git diff --cached
  • Agent Instruction: Carefully analyze the structural modifications to the smart contracts or test files in this diff to formulate a highly accurate, precise commit message.

๐Ÿ”€ Step 3: Git Commit & Push

Only proceed to this step after all pre-commit contract checks have passed and the staged diff has been reviewed.

  1. Commit with Context:
    • Craft a concise, clear commit message using the imperative mood (e.g., feat: add memo validation to buyMeCoffee function).
    • Base the description directly on your findings from the git diff --cached output.
git commit -m "<descriptive-message-from-diff>"
  1. Push to Remote:
git push origin HEAD

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.