0xmiden/agent-tools/felt-construction
Claude Code and agent skill by 0xmiden/agent-tools
- community
Checking that the SKILL.md file is still in the repository.
Use when constructing a `Felt` from a numeric value in Rust — avoid silently producing a non-canonical Felt that no longer equals the original input.
Install
npx vskill@latest install 0xmiden/agent-tools/felt-constructionSKILL.md
Felt Construction From Untrusted Numeric Inputs
Rule
Felt::new(x) is checked and returns Result, rejecting values greater than or equal to Felt::ORDER. Use it when a u64 input may exceed the field modulus.
Use one of:
Felt::from(x)wherexis au32or smaller (infallible).Felt::new(x)orFelt::try_from(x)foru64inputs; both returnResultand check the bound.Felt::new_unchecked(x)only whenx < Felt::ORDERhas already been proved.
Why
The field modulus sits just below 2^64, so out-of-range inputs occupy a narrow band that tests can miss. Checked construction makes those inputs explicit errors; new_unchecked skips that protection.
Examples
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/felt-construction/SKILL.md
Popularity
- Repository stars
- 2
- Repository forks
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0xmiden/agent-tools/felt-construction)