/workflows - Repository Workflows
SkillDev toolsCommon developer workflows, commands, and troubleshooting for leanSpec
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 /workflows - Repository Workflows skill
What this skill tells your AI
The instructions your AI receives, as published by leanethereum/leanspec in .claude/skills/workflows/SKILL.md and read by ahel’s review.
Common developer workflows and commands for working in leanSpec.
Running Specific Tests
# Single test file
just test tests/node/networking/transport/test_peer_id.py -v
# Single test class or method
just test -k "TestDiscoveryTransport::test_start" -v
# With print output visible
just test -s -k "test_name"
Resolving Type Errors
The project uses two type checkers. Run them separately to isolate issues:
# Full type check (ty — the primary checker used in CI)
just typecheck
# Lint check (ruff — catches style and import issues)
just lint
Common type error patterns:
invalid-assignment— Wrong type assigned; check if a domain type (RequestId,PeerId) is expected instead of rawbytesinvalid-argument-type— Function argument type mismatch; verify the function signatureunion-attr— Accessing attribute on a possibly-Nonevalue; add anassert is not Noneguard
Inspecting Coverage
After running tests, coverage reports are generated:
# View coverage in terminal
just test-cov
# Open HTML report
open htmlcov/index.html
Running Interop Tests
Interop tests are excluded from the default test run. Run them explicitly:
just interop
Spell Check Failures
# Run spell check
just spellcheck
# Add legitimate words to the ignore list
echo "newword" >> .codespell-ignore-words.txt
Markdown Formatting
# Check markdown formatting (docs only)
just mdformat
Common Pitfalls
- Tests pass locally but CI fails: CI runs checks across Python 3.12, 3.13, and 3.14. Ensure no version-specific syntax is used.
ruff formatchanges afterruff check --fix: Always run format after fix — the fixer doesn't guarantee formatting compliance.- Import ordering issues: Run
just fixto auto-sort imports.
Signals
- GitHub stars
- 143
- Forks
- 83
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
workflows-leanethereum- Source
- github.com/leanethereum/leanspec