computer-science-theory

computer-science-theory is a skill for Claude Code, Codex from leonardodalinky/SciDER. It costs 46 tokens per session (3,070 once invoked), scanned A, original, Apache-2.0.

A guide to the theoretical foundations of computer science for analysing algorithms and system designs. It explains how running time grows, how to choose data structures, how to benchmark fairly, and how to check correctness.

In plain words
What is it for?
Use it to compare algorithm complexity, select data structures, design benchmarks, reason about distributed systems, and test program properties with invariants or generated cases.
Why use it?
It helps distinguish an algorithm that merely works from one that remains efficient and reliable as the input grows. It also reduces misleading performance comparisons and unnoticed correctness errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare algorithm complexity, select data structures, design benchmarks, reason about distributed systems, and test program properties with invariants or generated cases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leonardodalinky/scider/computer-science-theory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add leonardodalinky/SciDER --skill computer-science-theory
Clone the repo
git clone --depth 1 https://github.com/leonardodalinky/SciDER

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for computer-science-theory

README.md
[![agentmods](https://agentmods.dev/badge/skills/leonardodalinky/scider/computer-science-theory/github.svg)](https://agentmods.dev/skills/leonardodalinky/scider/computer-science-theory)
Your own site
<a href="https://agentmods.dev/skills/leonardodalinky/scider/computer-science-theory"><img src="https://agentmods.dev/badge/skills/leonardodalinky/scider/computer-science-theory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for computer-science-theory

Your own site · 80×15
<a href="https://agentmods.dev/skills/leonardodalinky/scider/computer-science-theory"><img src="https://agentmods.dev/badge/skills/leonardodalinky/scider/computer-science-theory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.03070
Opus 5 $0.00023 $0.01535
Sonnet 5 $0.00009 $0.00614
Haiku 4.5 $0.00005 $0.00307

Measured 9d ago against content hash e1f931943fdf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

computer-science-theory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.scider/skills/computer-science-theory/SKILL.md · 340 lines

How it starts

The opening of the file, as written. The whole thing — 340 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Computer Science Theory

Overview

This skill provides the theoretical CS foundations needed for rigorous research: complexity analysis, data structure selection, benchmarking methodology, and system design principles. Use it to make principled algorithmic choices and ensure benchmarks are scientifically valid.

When to Use This Skill

  • Analyzing or comparing algorithm complexity
  • Choosing the right data structure for a performance-critical path
  • Designing a benchmarking study with statistical rigor
  • Reasoning about distributed ML training or data pipelines
  • Validating algorithm correctness with invariants and property-based tests

1. Algorithm Complexity

Big-O Quick Reference

Complexity Example Max n for 1s (rough)
O(1) Hash table lookup Any
O(log n) Binary search Any
O(n) Linear scan ~10⁸
O(n log n) Merge sort, FFT ~10⁷
O(n²) Nested loops, naive DP ~10⁴
O(n³) Matrix multiplication (naive) ~10³
O(2ⁿ) Exponential, backtracking ~25
import time, math, numpy as np

def measure_complexity(func, sizes, repeats=5):
    """Empirically measure complexity by timing at different input sizes."""
    times = {}
    for n in sizes:
        data = list(range(n))
        elapsed = []
        for _ in range(repeats):
            start = time.perf_counter()
            func(data)
            elapsed.append(time.perf_counter() - start)
        times[n] = np.median(elapsed)

    # Log-log plot slope estimates complexity class
    log_n = np.log(list(times.keys()))
    log_t = np.log(list(times.values()))
    slope = np.polyfit(log_n, log_t, 1)[0]
    print(f"Empirical complexity slope: {slope:.2f}  (1.0=linear, 2.0=quadratic)")
    return times

# Example: verify that your sort is O(n log n)
def my_sort(data): return sorted(data)
times = measure_complexity(my_sort, [100, 1000, 10000, 100000])

Amortized Analysis

Some operations appear O(n) in worst case but O(1) amortized:

  • Dynamic array append: occasional resize is O(n), but amortized O(1)
  • Union-Find with path compression: nearly O(1) per operation
  • Don't judge a data structure by its worst-case single operation — think about sequences

Read the full file on GitHub · 340 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 340 lines · 46 tokens per session scan A e1f931943fdf

Subscribe to this mod's changes

computer-science-theory is a skill published in the GitHub repository leonardodalinky/SciDER (88 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 3,070 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

learn

Use this skill when the user wants intellectual understanding — learning how or why something works, not getting a task done or soliciting Claude's judgment. Trigger for: Explicit learning requests: teach, explain, ELI5, walk me through, quiz me, flashcards, "I'm rusty on"; definitions ("what is X") Terse concept…

HughYau/AcademicForge · 219 tokens

fable4sci

Transform dense technical, scientific, cybersecurity, computing, network, or life-science research questions into clear source-domain-neutral fables for non-specialists. Use when the user asks to allegorize, fable-ize, turn complex research into a metaphorical story, explain without jargon, produce both plain and more…

HughYau/fable4sci-skill · 88 tokens

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

A course or workshop slide template with persistent learning goals, teaching pages, multiple-choice self-tests, and a wrap-up.

nexu-io/html-anything · 25 tokens