cs-foundations

cs-foundations is a skill for Claude Code, Codex from foryourhealth111-pixel/Vibe-Skills. It costs 26 tokens per session (836 once invoked), scanned A, original, Apache-2.0.

A learning skill for discrete mathematics, logic, formal proofs, and computational thinking—the mathematical ideas used to reason about computer programs and algorithms.

In plain words
What is it for?
Use it to study logic, proofs, combinatorics, relations, functions, graph theory, truth tables, induction, and problem decomposition at introductory, standard, or advanced depth.
Why use it?
It provides a structured way to build foundations that make algorithms and software reasoning easier to understand. It covers topics such as sets, functions, counting, number theory, graphs, and proof techniques.

Skill for Claude CodeCodex

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

Good fit Use it to study logic, proofs, combinatorics, relations, functions, graph theory, truth tables, induction, and problem decomposition at introductory, standard, or advanced depth.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/foryourhealth111-pixel/vibe-skills/cs-foundations
About the project

Vibe-Skills is a collection and routing system that helps AI agents discover, select, and coordinate specialized skills for completing tasks. It is intended for agents that need to organize workflows across many installed capabilities. The catalogue entries are skills and an agent belonging to this system.

foryourhealth111-pixel/Vibe-Skills · 3,252 stars · on GitHub

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 foryourhealth111-pixel/Vibe-Skills --skill cs-foundations
Clone the repo
git clone --depth 1 https://github.com/foryourhealth111-pixel/Vibe-Skills

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 cs-foundations

README.md
[![agentmods](https://agentmods.dev/badge/skills/foryourhealth111-pixel/vibe-skills/cs-foundations/github.svg)](https://agentmods.dev/skills/foryourhealth111-pixel/vibe-skills/cs-foundations)
Your own site
<a href="https://agentmods.dev/skills/foryourhealth111-pixel/vibe-skills/cs-foundations"><img src="https://agentmods.dev/badge/skills/foryourhealth111-pixel/vibe-skills/cs-foundations/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 cs-foundations

Your own site · 80×15
<a href="https://agentmods.dev/skills/foryourhealth111-pixel/vibe-skills/cs-foundations"><img src="https://agentmods.dev/badge/skills/foryourhealth111-pixel/vibe-skills/cs-foundations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 836 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00026 $0.00836
Opus 5 $0.00013 $0.00418
Sonnet 5 $0.00005 $0.00167
Haiku 4.5 $0.00003 $0.00084

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

Security

Grade A, and why

cs-foundations 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 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/proof_validator.py, scripts/verify-proof.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

bundled/skills/cs-foundations/SKILL.md · 158 lines

How it starts

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

CS Foundations Skill

Skill Metadata

skill_config:
  version: "1.0.0"
  category: theoretical
  prerequisites: []
  estimated_time: "6-8 weeks"
  difficulty: intermediate

  parameter_validation:
    topic:
      type: string
      enum: [logic, proofs, sets, functions, combinatorics, number-theory, graphs]
      required: true
    depth:
      type: string
      enum: [intro, standard, advanced]
      default: standard

  retry_config:
    max_attempts: 3
    backoff_strategy: exponential
    initial_delay_ms: 500

  observability:
    log_level: INFO
    metrics: [topic_usage, proof_verification_rate, exercise_completion]

Quick Start

Computer science is built on mathematics. Master these fundamentals:

Core Topics

Discrete Mathematics

  • Set theory and operations
  • Logic and proof techniques
  • Combinatorics and counting
  • Number theory basics
  • Relations and functions

Computational Thinking

  • Problem decomposition
  • Abstraction and generalization
  • Pattern recognition
  • Algorithmic thinking

Formal Logic

  • Propositional logic
  • Predicate logic
  • Proof by induction
  • Truth tables and logical equivalence

Learning Path

Week 1: Logic Basics

  • Boolean algebra
  • Truth tables
  • Logical operators
  • Inference rules

Week 2: Proof Techniques

  • Direct proof
  • Proof by contradiction
  • Mathematical induction
  • Strong induction

Week 3: Set Theory

  • Set operations (∪, ∩, complement)
  • Cartesian product
  • Relations
  • Equivalence relations

Week 4: Functions

  • Function notation
  • Domain, codomain, range
  • One-to-one and onto
  • Function composition

Week 5: Combinatorics

  • Counting principles
  • Permutations
  • Combinations
  • Pigeonhole principle

Week 6: Number Theory

  • Modular arithmetic
  • Prime numbers
  • GCD and Euclidean algorithm
  • Congruence

Practice Problems

  1. Prove by induction that 1+2+...+n = n(n+1)/2
  2. Prove √2 is irrational
  3. Show A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
  4. Count functions from {1,2,3} to {a,b}
  5. Solve: x ≡ 5 (mod 12) and x ≡ 3 (mod 8)

Read the full file on GitHub · 158 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago First seen · 158 lines · 26 tokens per session scan A 17fff8488873

Subscribe to this mod's changes

cs-foundations is a skill published in the GitHub repository foryourhealth111-pixel/Vibe-Skills (3,252 stars, last pushed 12d ago), licensed Apache-2.0. It adds 26 tokens to every session and 836 once invoked, about $0.0001 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.