スキル一覧に戻る
seanchatmangpt

bb80-invariant-construction

by seanchatmangpt

Rust Template Generator with Frontmatter & RDF Support

1🍴 1📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: bb80-invariant-construction description: "Extract invariants from specification, encode in types/structure, enable single-pass construction." allowed_tools: "Read, Write, Edit"

Big Bang 80/20: Invariant Construction

Core Concept

Big Bang 80/20 means single-pass construction in low-entropy domains.

Key: Extract invariants from specification, encode in types, never violate.

What Are Invariants?

Invariants are properties that must always be true:

DomainInvariantRust Type
Error handlingAll errors Result<T,E>Result<T, Error>
File pathsNo traversalSafePath wrapper
Age0 ≤ age ≤ 150newtype Age(u8)
Cache size≤ 10,000 entriesBoundedCache<T>

Type-Safe Design

// ✅ Invariant encoded in type
pub struct Age(u8);  // 0-255 enforced by type

impl Age {
    pub fn new(value: u8) -> Result<Self, Error> {
        if value > 150 {
            Err(Error::InvalidAge)
        } else {
            Ok(Age(value))
        }
    }
}

Reference

See CLAUDE.md sections:

  • Constitutional Rules (Type-First)
  • Automatic (Type-safe design)
  • Holographic Factory Metaphor (Corollary)

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です