number-theory-toolkit

Provide number theory algorithm implementations and guidance

509 stars

Best use case

number-theory-toolkit is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Provide number theory algorithm implementations and guidance

Teams using number-theory-toolkit should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/number-theory-toolkit/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/algorithms-optimization/skills/number-theory-toolkit/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/number-theory-toolkit/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How number-theory-toolkit Compares

Feature / Agentnumber-theory-toolkitStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Provide number theory algorithm implementations and guidance

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Number Theory Toolkit Skill

## Purpose

Provide implementations and guidance for number theory algorithms commonly used in competitive programming.

## Capabilities

- Modular arithmetic operations
- Extended Euclidean algorithm
- Chinese Remainder Theorem
- Modular inverse and exponentiation
- FFT/NTT for polynomial multiplication
- Linear sieve implementations

## Target Processes

- number-theory-algorithms
- prime-algorithms
- combinatorics-counting

## Algorithm Catalog

### Modular Arithmetic
- Modular exponentiation (binary exp)
- Modular inverse (Fermat/Extended GCD)
- Modular square root (Tonelli-Shanks)

### GCD and Extensions
- Euclidean algorithm
- Extended Euclidean algorithm
- Linear Diophantine equations

### Chinese Remainder Theorem
- CRT for coprime moduli
- General CRT

### FFT/NTT
- Fast Fourier Transform
- Number Theoretic Transform
- Polynomial multiplication

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "algorithm": { "type": "string" },
    "parameters": { "type": "object" },
    "language": {
      "type": "string",
      "enum": ["cpp", "python", "java"]
    },
    "modulo": { "type": "integer" }
  },
  "required": ["algorithm"]
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "code": { "type": "string" },
    "explanation": { "type": "string" },
    "complexity": { "type": "string" }
  },
  "required": ["success"]
}
```

Related Skills

redux-toolkit

509
from a5c-ai/babysitter

Redux Toolkit patterns including slice creation, async thunks, RTK Query, state normalization, and DevTools integration.

Type Theory

509
from a5c-ai/babysitter

Expert skill in type theory foundations for implementing type systems including inference, checking, and subtyping

cuda-toolkit

509
from a5c-ai/babysitter

Deep integration with NVIDIA CUDA toolkit for kernel development, compilation, and debugging. Execute nvcc compilation with optimization flags analysis, generate and validate CUDA kernel code, analyze PTX/SASS assembly output, and configure execution parameters.

unity-ui-toolkit

509
from a5c-ai/babysitter

Unity UI Toolkit skill for runtime UI development, USS styling, UXML templates, and custom visual elements.

critical-theory-application

509
from a5c-ai/babysitter

Apply theoretical frameworks (postcolonial, feminist, Marxist, post-structuralist) to cultural texts and phenomena

scipy-optimization-toolkit

509
from a5c-ai/babysitter

SciPy scientific computing skill for numerical optimization, integration, and signal processing in physics

sensitivity-analysis-toolkit

509
from a5c-ai/babysitter

Comprehensive sensitivity analysis for optimization

robust-statistics-toolkit

509
from a5c-ai/babysitter

Robust statistical methods resistant to outliers

numerical-linear-algebra-toolkit

509
from a5c-ai/babysitter

High-performance numerical linear algebra operations

probabilistic-analysis-toolkit

509
from a5c-ai/babysitter

Analyze randomized algorithms with probability theory tools and concentration inequalities

process-builder

509
from a5c-ai/babysitter

Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.

Workflow & Productivity

babysitter

509
from a5c-ai/babysitter

Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)