cs-foundations

GitHub

掌握离散数学、逻辑、形式化证明及计算思维,构建计算机科学数学基础。涵盖逻辑、集合、函数、组合数学等核心主题,提供6-8周学习路径、练习题及面试准备指南。

bundled/skills/cs-foundations/SKILL.md foryourhealth111-pixel/Vibe-Skills

Trigger Scenarios

学习离散数学基础 练习形式化逻辑与证明 理解算法正确性与复杂性 准备计算机相关技术面试

Install

npx skills add foryourhealth111-pixel/Vibe-Skills --skill cs-foundations -g -y
More Options

Non-standard path

npx skills add https://github.com/foryourhealth111-pixel/Vibe-Skills/tree/main/bundled/skills/cs-foundations -g -y

Use without installing

npx skills use foryourhealth111-pixel/Vibe-Skills@cs-foundations

指定 Agent (Claude Code)

npx skills add foryourhealth111-pixel/Vibe-Skills --skill cs-foundations -a claude-code -g -y

安装 repo 全部 skill

npx skills add foryourhealth111-pixel/Vibe-Skills --all -g -y

预览 repo 内 skill

npx skills add foryourhealth111-pixel/Vibe-Skills --list

SKILL.md

Frontmatter
{
    "name": "cs-foundations",
    "bond_type": "PRIMARY_BOND",
    "description": "Master discrete mathematics, logic, formal proofs, and computational thinking. Build the mathematical foundation for all computer science.",
    "bonded_agent": "01-cs-foundations-expert",
    "sasmp_version": "1.3.0"
}

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)

Troubleshooting

Issue Root Cause Resolution
Proof stuck Missing case or wrong direction Check base case, verify induction step
Set operation confusion ∪ vs ∩ mix-up Draw Venn diagram
Counting error Overcounting duplicates Distinguish P(n,r) vs C(n,r)
Modular arithmetic error Forgot wraparound Work with remainders explicitly

Key Concepts

  • Axioms: Statements we assume true
  • Theorems: Statements we prove
  • Lemmas: Helper theorems
  • Corollaries: Results that follow easily

Why It Matters

These foundations enable:

  • Understanding algorithm correctness
  • Analyzing computational complexity
  • Designing new algorithms
  • Proving algorithm properties
  • Understanding what's computable

Interview Prep

  • Explain mathematical induction
  • Prove that a function is injective
  • Count permutations with constraints
  • Solve modular equations
  • Apply pigeonhole principle

Version History

  • f627ab5 Current 2026-07-25 04:40

Same Skill Collection

bundled/skills/.system/skill-creator/SKILL.md
bundled/skills/.system/skill-installer/SKILL.md
bundled/skills/aeon/SKILL.md
bundled/skills/algorithmic-art/SKILL.md
bundled/skills/architecture-patterns/SKILL.md
bundled/skills/astropy/SKILL.md
bundled/skills/autonomous-builder/SKILL.md
bundled/skills/brainstorming/SKILL.md
bundled/skills/cancel-ralph/SKILL.md
bundled/skills/chembl-database/SKILL.md
bundled/skills/citation-management/SKILL.md
bundled/skills/claude-skills/SKILL.md
bundled/skills/clinical-reports/SKILL.md
bundled/skills/clinicaltrials-database/SKILL.md
bundled/skills/clinpgx-database/SKILL.md
bundled/skills/code-reviewer/SKILL.md
bundled/skills/coding-tutor/SKILL.md
bundled/skills/commit-with-reflection/SKILL.md
bundled/skills/comprehensive-research-agent/SKILL.md
bundled/skills/content-research-writer/SKILL.md
bundled/skills/context-fundamentals/SKILL.md
bundled/skills/context-hunter/SKILL.md
bundled/skills/create-plan/SKILL.md
bundled/skills/creating-data-visualizations/SKILL.md
bundled/skills/dask/SKILL.md
bundled/skills/data-artist/SKILL.md
bundled/skills/data-quality-frameworks/SKILL.md
bundled/skills/data-storytelling/SKILL.md
bundled/skills/datacommons-client/SKILL.md
bundled/skills/datavis/SKILL.md
bundled/skills/denario/SKILL.md
bundled/skills/designing-experiments/SKILL.md
bundled/skills/detecting-data-anomalies/SKILL.md
bundled/skills/detecting-performance-regressions/SKILL.md
bundled/skills/dialectic/SKILL.md
bundled/skills/digital-brain/SKILL.md
bundled/skills/dnanexus-integration/SKILL.md
bundled/skills/doc/SKILL.md
bundled/skills/docs-review/SKILL.md
bundled/skills/docs-write/SKILL.md
bundled/skills/document-skills/docx/SKILL.md
bundled/skills/document-skills/pdf/SKILL.md
bundled/skills/document-skills/pptx/SKILL.md
bundled/skills/document-skills/SKILL.md
bundled/skills/documentation-lookup/SKILL.md
bundled/skills/docx-comment-reply/SKILL.md
bundled/skills/docx/SKILL.md
bundled/skills/edgartools/SKILL.md
bundled/skills/embedding-strategies/SKILL.md

Metadata

Files
0
Version
f627ab5
Hash
17fff848
Indexed
2026-07-25 04:40

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 07:37
浙ICP备14020137号-1 $방문자$