circuit-fibsqrt

Guide construction of gate-level circuits for integer square root and Fibonacci sequences.

134|21|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/letta-ai/skills --skill circuit-fibsqrt
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: circuit-fibsqrt
Source: https://github.com/letta-ai/skills/tree/main/ai/benchmarks/letta/terminal-bench-2/trajectory-feedback/circuit-fibsqrt
Command: npx skills add https://github.com/letta-ai/skills --skill circuit-fibsqrt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides building gate-level circuits that compute mathematical functions (e.g., square root, Fibonacci) in text-based simulators with event-driven semantics.

Core Features & Use Cases

  • Component-first approach: adders, comparators, multiplexers
  • Sequential logic for iterative computations
  • Paper-trace and test strategies for isqrt and Fibonacci circuits

Quick Start

Begin with a simple 1-bit adder circuit in a text-based gate netlist and verify correct multi-bit expansion.

Frequently Asked Questions about circuit-fibsqrt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design gate-level circuits that compute integer square root?▼

Gate-level circuits for isqrt use iterative algorithms implemented with primitive gates (AND, OR, XOR, NOT, MUX) and arithmetic blocks like comparators and subtractors. Build multi-bit ripple-carry adders and comparators first, then combine them into a sequential logic structure that refines the result over iterations, tracking intermediate values through named signals in a text-based netlist.

What's the best way to build Fibonacci circuits using gate-level logic?▼

Fibonacci circuits use sequential logic with storage elements and arithmetic building blocks to generate sequences. Implement half adders and full adders as components, then chain them with feedback loops in a text-based gate netlist to accumulate successive Fibonacci values, optimizing for gate count while preserving intermediate signal names for tracing.

How do I create text-based gate netlists for mathematical function circuits?▼

Text-based gate netlists specify primitive gates (AND, OR, XOR, NOT, MUX) and their connections with consistent signal naming. Start with simple 1-bit adders, verify multi-bit expansion, then compose larger arithmetic blocks like N-bit adders and comparators into event-driven simulators that compute math functions under resource constraints.

Can I simulate gate-level circuits with event-driven feedback loops?▼

Event-driven simulators support feedback loops for sequential computation. Text-based gate netlists with named signals and primitive gate definitions enable simulation of iterative algorithms; verify behavior by paper-tracing signal states and testing against known outputs for math functions like isqrt and Fibonacci.

What arithmetic building blocks do I need for gate-level math circuits?▼

Core blocks include half adders, full adders, N-bit ripple-carry adders, subtractors, and comparators built from primitive gates. These components form the foundation for larger circuits computing math functions; they're specified in text netlists and optimized by minimizing gate count while maintaining correct signal propagation.