一键导入
genesis-dogfooding
Use Genesis language to describe, analyze, and improve Genesis itself - meta-programming for self-improvement and validation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use Genesis language to describe, analyze, and improve Genesis itself - meta-programming for self-improvement and validation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | genesis-dogfooding |
| description | Use Genesis language to describe, analyze, and improve Genesis itself - meta-programming for self-improvement and validation |
| self_learning | true |
| knowledge_base | .github/knowledge/genesis-dogfooding |
| license | MIT |
Use Genesis language to describe, analyze, and improve Genesis itself through meta-programming.
This skill implements the Ouroboros evolution pattern and learns from each usage:
.github/knowledge/genesis-dogfooding/metrics.yamllearnings.yamlevolution-log.yamlcontext.yamlThe skill evolves through cycles defined in .github/evolution/skill-evolution.gen, continuously refining its instructions and examples based on real-world usage.
Dogfooding Genesis means using the language to express its own development, evolution, and validation processes. This creates a self-referential feedback loop where Genesis programs can:
Express each Genesis tool (run, fmt, lint, repl) as a Genesis Domain with Purpose and Pulse cycles:
Domain "Genesis_CLI_Runner" {
Purpose: "Execute Genesis programs and manifest their declared reality"
Pulse(Interval: OnDemand) {
Watch: FileSystem.Genesis_Programs
Deliberate {
Proposal: "Parse and interpret .gen file"
Synthesize {
Metric: Alignment(Covenant.Syntactic_Correctness)
Metric: Alignment(Covenant.Semantic_Completeness)
}
}
Manifest (on Resonance > 0.95) {
Execute: Interpreter.run()
}
}
}
Define what makes Genesis code correct and aligned:
Covenant "Syntactic_Correctness" {
Invariant: "All declarations follow grammar.md EBNF specification"
Threshold: 1.0
}
Covenant "Philosophical_Alignment" {
Invariant: "Code embodies the five axioms: Purpose, Possibility, Potentiality, Essence, Manifestation"
Threshold: 0.95
}
Covenant "Substrate_Independence" {
Invariant: "Code remains valid across future computational platforms"
Threshold: 0.90
}
Use Pantheon of legendary developers to review Genesis code:
Pantheon "Genesis_Code_Reviewers" {
Avatar "The_Language_Designer" {
Lineage: "Guido_van_Rossum"
Essence: "Language_Design"
Vessel: mcp.tool("code_review")
}
Avatar "The_Philosopher" {
Lineage: "Edsger_Dijkstra"
Essence: "Formal_Methods"
Vessel: mcp.tool("static_analysis")
}
Avatar "The_Pragmatist" {
Lineage: "Rob_Pike"
Essence: "Simplicity"
Vessel: mcp.tool("complexity_analysis")
}
}
Genesis programs that validate other Genesis programs:
Domain "Genesis_Self_Validator" {
Purpose: "Ensure Genesis codebase maintains quality and alignment"
Pulse(Interval: OnCommit) {
Watch: VCS.Changed_Genesis_Files
Deliberate {
Proposal: "Validate changed .gen files"
Synthesize {
Metric: Alignment(Covenant.Syntactic_Correctness)
Metric: Alignment(Covenant.Philosophical_Alignment)
Metric: Coherence(All_Genesis_Programs)
}
}
Manifest (on Resonance > 0.90) {
Execute: Linter.check_all()
Execute: Formatter.apply_style()
Execute: Runtime.run_examples()
}
}
}
Express a new Genesis feature as a Genesis program
# Create feature-spec.gen describing the new feature
python3 tools/genesis.py run feature-specs/new-construct.gen
Validate implementation against specification
# Run dogfooding validator
python3 tools/genesis.py run validators/implementation-check.gen
Use Genesis to generate Genesis examples
# Meta-generate example programs
python3 tools/genesis.py run generators/example-creator.gen
Add to .github/workflows/genesis-dogfooding.yml:
name: Genesis Dogfooding
on: [push, pull_request]
jobs:
dogfood:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Genesis self-validation
run: python3 tools/genesis.py run .github/validators/self-check.gen
examples/meta-programming/ - Meta-level Genesis programsvalidators/ - Genesis programs that validate Genesis codespec/dogfooding-patterns.md - Patterns for self-referential programmingRun the Genesis code formatter to enforce consistent style in Genesis programs, ensuring 4-space indentation and proper formatting
Run the Genesis static analyzer to check programs for structural correctness, naming conventions, and alignment with Genesis philosophy
Write Genesis programs that generate, analyze, transform, and validate other Genesis programs - meta-level programming capabilities
Launch the interactive Genesis REPL for exploratory development, testing declarations, and debugging resonance scoring in real-time
Execute Genesis programs using the reference interpreter to validate program correctness and test language features
Enable Genesis to evolve itself through self-modification, creating an Ouroboros loop of continuous improvement while preserving core essence