Skip to content

Commit 79dd316

Browse files
rodion-mclaude
andcommitted
Restructure to hierarchical #/## split (20 dirs, 224 files)
Each top-level heading becomes a directory with _index.md listing sub-sections. Agent reads _index.md first, then loads only the specific ~300-line sub-section needed — 20x less context than flat files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3f213b5 commit 79dd316

236 files changed

Lines changed: 55260 additions & 57684 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,55 @@
22

33
AI coding agent skill for the [First Principles Framework (FPF)](https://github.com/ailev/FPF) by [Anatoly Levenchuk](https://github.com/ailev).
44

5-
FPF is a transdisciplinary reasoning architecture for systems engineering, knowledge coordination, and mixed human/AI teams. This skill splits the 56,000-line FPF specification into 20 navigable sections with an INDEX that tells the agent which section to load for a given task.
5+
FPF is a transdisciplinary reasoning architecture for systems engineering, knowledge coordination, and mixed human/AI teams. This skill splits the 56,000-line FPF specification into a two-level hierarchy (20 directories, 224 files) so an agent loads only the ~300-line sub-section it needs instead of the entire spec.
66

77
## Install
88

99
```bash
1010
npx skills add CodeAlive-AI/fpf-simple-skill -g -y
1111
```
1212

13+
## Structure
14+
15+
```
16+
sections/
17+
04-part-a-kernel-architecture-cluster/
18+
_index.md # TOC with descriptions of all sub-sections
19+
01-a-0---onboarding-glossary.md # 137 lines
20+
02-a-1---holonic-foundation.md # 185 lines
21+
... # 19 sub-sections total
22+
08-part-c-kernel-extensions-specifications/
23+
_index.md
24+
... # 30 sub-sections
25+
... # 20 directories total
26+
```
27+
28+
The agent reads `_index.md` first, picks the right sub-section file, and loads only that.
29+
1330
## Sections
1431

15-
| # | Section | Lines |
16-
|---|---------|-------|
17-
| 01 | Title page | 6 |
18-
| 02 | Table of Content | 324 |
19-
| 03 | Preface | 398 |
20-
| 04 | Part A — Kernel Architecture | 5,791 |
21-
| 05 | Cluster A.IV.A — Signature Stack & Boundary Discipline | 8,819 |
22-
| 06 | Cluster A.V — Constitutional Principles | 8,156 |
23-
| 07 | Part B — Trans-disciplinary Reasoning | 4,825 |
24-
| 08 | Part C — Kernel Extensions (CALs, LOGs, CHRs) | 8,280 |
25-
| 09 | Part D — Multi-scale Ethics & Conflict-Optimisation | 137 |
26-
| 10 | Part E — Constitution & Authoring (header) | 2 |
27-
| 11 | Section E-I — FPF Constitution | 6,239 |
28-
| 12 | Part F — Unification Suite (header) | 2 |
29-
| 13 | Cluster F.I — Context of Meaning & Raw Material | 6,150 |
30-
| 14 | UTS Layout A — Cross-context unification table | 13 |
31-
| 15 | UTS Layout B — Base-concept pivot | 798 |
32-
| 16 | Part G — Discipline SoTA Patterns Kit | 6,074 |
33-
| 17 | Part H — Glossary & Definitional Pattern Index | 9 |
34-
| 18 | Part I — Annexes & Extended Tutorials | 10 |
35-
| 19 | Part J — Indexes & Navigation Aids | 8 |
36-
| 20 | Part K — Lexical Debt | 80 |
32+
| # | Section | Sub-sections |
33+
|---|---------|:---:|
34+
| 01 | Title page | 0 |
35+
| 02 | Table of Content | 0 |
36+
| 03 | Preface | 17 |
37+
| 04 | Part A — Kernel Architecture | 19 |
38+
| 05 | A.IV.A — Signature Stack & Boundary | 18 |
39+
| 06 | A.V — Constitutional Principles | 29 |
40+
| 07 | Part B — Trans-disciplinary Reasoning | 24 |
41+
| 08 | Part C — Kernel Extensions | 30 |
42+
| 09 | Part D — Ethics & Conflict | 1 |
43+
| 10 | Part E — Constitution & Authoring | 0 |
44+
| 11 | E-I — FPF Constitution | 29 |
45+
| 12 | Part F — Unification Suite | 0 |
46+
| 13 | F.I — Context of Meaning | 19 |
47+
| 14 | UTS Layout A | 0 |
48+
| 15 | UTS Layout B | 1 |
49+
| 16 | Part G — SoTA Patterns Kit | 15 |
50+
| 17 | Part H — Glossary | 0 |
51+
| 18 | Part I — Annexes | 0 |
52+
| 19 | Part J — Indexes | 0 |
53+
| 20 | Part K — Lexical Debt | 2 |
3754

3855
## Regenerating sections
3956

SKILL.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,23 @@ license: MIT
66

77
# First Principles Framework (FPF)
88

9-
An "Operating System for Thought" — a rigorous, transdisciplinary architecture for reasoning,
9+
An "Operating System for Thought" — a transdisciplinary architecture for reasoning,
1010
written in human- and machine-readable pseudo-code. FPF turns raw intelligence (human or machine)
1111
into organisationally usable reasoning: explicit bounded contexts, auditable artefacts, multi-view
1212
descriptions, and disciplined hand-offs between specialised actors.
1313

1414
## How to use
1515

16-
1. Find the relevant section(s) from the INDEX below.
17-
2. Read the corresponding file from `sections/` into context.
18-
3. Apply FPF patterns using plain language; introduce FPF-internal names only when they add precision.
16+
The spec is split into `sections/` with a two-level hierarchy:
1917

20-
FPF is not a narrative textbook — it is source code for an evolvable reasoning architecture.
21-
Treat it as a design kit: ask for bounded-context maps, decision criteria, option portfolios,
22-
hand-off contracts, and publication surfaces for the user's domain, then iterate.
18+
1. Find the relevant Part from the INDEX below.
19+
2. Read its `_index.md` to see the list of sub-sections with descriptions.
20+
3. Read only the specific sub-section file you need.
21+
4. Apply FPF patterns using plain language; introduce FPF-internal names only when they add precision.
22+
23+
IMPORTANT: Always start by reading `_index.md` of the relevant section folder —
24+
it lists all sub-sections with line counts and descriptions so you can pick the right file
25+
without loading thousands of lines.
2326

2427
## Starter prompt
2528

@@ -32,27 +35,27 @@ hand-off contracts, and publication surfaces for the user's domain, then iterate
3235
3336
## Section INDEX
3437

35-
Load the section file that matches the user's need:
36-
37-
| # | File | When to use |
38-
|---|------|-------------|
39-
| 01 | [Title page](sections/01-first-principles-framework-core-conceptual-specification.md) | Need the document's authorship, version date, or top-level identity. |
40-
| 02 | [Table of Content](sections/02-table-of-content.md) | Navigate the spec, locate a specific pattern, or understand inter-section dependencies. |
41-
| 03 | [Preface](sections/03-preface.md) | Onboarding to FPF; choosing a reading path for a specific role (project user, pattern author, language-state work). |
42-
| 04 | [Part A — Kernel Architecture](sections/04-part-a-kernel-architecture-cluster.md) | Understand or apply FPF's core ontological building blocks: holons, bounded contexts, roles, transformers, method/work separation, generative search/portfolio vocabulary. |
43-
| 05 | [Cluster A.IV.A — Signature Stack & Boundary Discipline](sections/05-cluster-a-iv-a---signature-stack-boundary-discipline.md) | Model system boundaries, APIs, protocols, or any interface where statements must be classified as definitions, gates, duties, or evidence. |
44-
| 06 | [Cluster A.V — Constitutional Principles / Strict Distinction](sections/06-cluster-a-v---constitutional-principles-of-the-kernel.md) | Prevent category errors: role vs. function, method-description vs. method vs. work, holon vs. system vs. episteme, episteme vs. carrier. |
45-
| 07 | [Part B — Trans-disciplinary Reasoning](sections/07-part-b-trans-disciplinary-reasoning-cluster.md) | Compose or roll up subsystem properties, trust scores, or any cross-scale aggregation (Gamma algebra). Explicit invariants and weakest-link bounds. |
46-
| 08 | [Part C — Kernel Extensions (CALs, LOGs, CHRs)](sections/08-part-c-kernel-extensions-specifications.md) | Formally characterize, compose, or compare knowledge artifacts (theories, specs, proofs, datasets). Epistemic scoring on Formality, ClaimScope, Reliability. |
47-
| 09 | [Part D — Multi-scale Ethics & Conflict-Optimisation](sections/09-part-d-multi-scale-ethics-conflict-optimisation.md) | Ethical trade-offs across scales, conflict resolution between stakeholders, bias auditing, or safety-evidence overriding utility. |
48-
| 10 | [Part E — Constitution & Authoring (header)](sections/10-part-e---fpf-constitution-and-authoring-cluster.md) | Entry point for Part E subsections (constitution, pillars, authoring protocols, lexical rules). |
49-
| 11 | [Section E-I — FPF Constitution](sections/11-section-e-i---the-fpf-constitution.md) | Understand FPF's foundational purpose, vision/mission ("OS for Thought"), the 11 Pillars, guard-rails, and the Multi-View Publication Kit (MVPK). |
50-
| 12 | [Part F — Unification Suite (header)](sections/12-part-f-the-unification-suite-concept-sets-sensecells-contextual-role-assignment.md) | Entry point for Part F subsections (Concept-Sets, SenseCells, Contextual Role Assignment). |
51-
| 13 | [Cluster F.I — Context of Meaning & Raw Material](sections/13-cluster-f-i-context-of-meaning-raw-material.md) | Semantic drift, homonym collisions, cross-domain vocabulary alignment. Contextual Lexicon Principles and Alignment Bridges. |
52-
| 14 | [UTS Layout A — Cross-context unification table](sections/14-block-fpf-u-type-unified-tech-name-unified-plain-name-plain-twin-governance-twin.md) | Build or read a cross-context unification table mapping concepts across standards or frameworks (BPMN, PROV-O, ITIL, etc.). |
53-
| 15 | [UTS Layout B — Base-concept pivot](sections/15-block-base-concept-scale-map.md) | Build a discipline-oriented concept unification table mapping unified concepts across discipline columns (operations, physics, math). |
54-
| 16 | [Part G — Discipline SoTA Patterns Kit](sections/16-part-g-discipline-sota-patterns-kit.md) | Author, extend, or refactor discipline-specific patterns. Harvest competing schools of thought, build SoTA Packs, TraditionCards, OperatorCards, selector-ready portfolios. |
55-
| 17 | [Part H — Glossary & Definitional Pattern Index](sections/17-part-h-glossary-definitional-pattern-index.md) | Look up canonical definitions, four-register naming, or cross-references for any FPF term. |
56-
| 18 | [Part I — Annexes & Extended Tutorials](sections/18-part-i-annexes-extended-tutorials.md) | Deprecated aliases, step-by-step walkthroughs, change log, external standards mappings (ISO 15926, BORO, CCO, Constructor Theory). |
57-
| 19 | [Part J — Indexes & Navigation Aids](sections/19-part-j-indexes-navigation-aids.md) | Find which pattern or example addresses a known concept or principle (concept-to-pattern, pattern-to-example, principle-trace indexes). |
58-
| 20 | [Part K — Lexical Debt](sections/20-part-k-lexical-debt.md) | Mandatory terminology replacements and migration debt for deprecated scope terms. Consult when authoring or editing normative FPF text. |
38+
Each entry is a folder. Read its `_index.md` first, then pick the sub-section file you need.
39+
40+
| # | Section | Sub-sections | When to use |
41+
|---|---------|:---:|-------------|
42+
| 01 | [Title page](sections/01-first-principles-framework-core-conceptual-specification/_index.md) | 0 | Authorship, version date, top-level identity. |
43+
| 02 | [Table of Content](sections/02-table-of-content/_index.md) | 0 | Navigate the spec, locate a pattern, understand inter-section dependencies. |
44+
| 03 | [Preface](sections/03-preface/_index.md) | 17 | Onboarding to FPF; choosing a reading path by role. |
45+
| 04 | [Part A — Kernel Architecture](sections/04-part-a-kernel-architecture-cluster/_index.md) | 19 | Core ontological building blocks: holons, bounded contexts, roles, transformers, method/work separation, generative search. |
46+
| 05 | [A.IV.A — Signature Stack & Boundary](sections/05-cluster-a-iv-a---signature-stack-boundary-discipline/_index.md) | 18 | System boundaries, APIs, protocols — classifying statements as definitions, gates, duties, or evidence. |
47+
| 06 | [A.V — Constitutional Principles](sections/06-cluster-a-v---constitutional-principles-of-the-kernel/_index.md) | 29 | Prevent category errors: role vs. function, method vs. work, holon vs. system vs. episteme. |
48+
| 07 | [Part B — Trans-disciplinary Reasoning](sections/07-part-b-trans-disciplinary-reasoning-cluster/_index.md) | 24 | Compose subsystem properties, trust scores, cross-scale aggregation (Gamma algebra). |
49+
| 08 | [Part C — Kernel Extensions](sections/08-part-c-kernel-extensions-specifications/_index.md) | 30 | Characterize, compose, compare knowledge artifacts. Epistemic scoring (Formality, ClaimScope, Reliability). |
50+
| 09 | [Part D — Ethics & Conflict](sections/09-part-d-multi-scale-ethics-conflict-optimisation/_index.md) | 1 | Ethical trade-offs, conflict resolution, bias auditing, safety-evidence overriding utility. |
51+
| 10 | [Part E — Constitution & Authoring](sections/10-part-e---fpf-constitution-and-authoring-cluster/_index.md) | 0 | Entry point for Part E subsections. |
52+
| 11 | [E-I — FPF Constitution](sections/11-section-e-i---the-fpf-constitution/_index.md) | 29 | FPF vision/mission, the 11 Pillars, guard-rails, Multi-View Publication Kit (MVPK). |
53+
| 12 | [Part F — Unification Suite](sections/12-part-f-the-unification-suite-concept-sets-sensecells-contextual-role-a/_index.md) | 0 | Entry point for Part F subsections. |
54+
| 13 | [F.I — Context of Meaning](sections/13-cluster-f-i-context-of-meaning-raw-material/_index.md) | 19 | Semantic drift, homonym collisions, cross-domain vocabulary alignment, Alignment Bridges. |
55+
| 14 | [UTS Layout A](sections/14-block-fpf-u-type-unified-tech-name-unified-plain-name-plain-twin-gover/_index.md) | 0 | Cross-context unification table mapping concepts across standards (BPMN, PROV-O, ITIL). |
56+
| 15 | [UTS Layout B](sections/15-block-base-concept-scale-map/_index.md) | 1 | Discipline-oriented concept unification table (operations, physics, math). |
57+
| 16 | [Part G — SoTA Patterns Kit](sections/16-part-g-discipline-sota-patterns-kit/_index.md) | 15 | Discipline-specific patterns, SoTA Packs, TraditionCards, OperatorCards, selector-ready portfolios. |
58+
| 17 | [Part H — Glossary](sections/17-part-h-glossary-definitional-pattern-index/_index.md) | 0 | Canonical definitions, four-register naming, cross-references for FPF terms. |
59+
| 18 | [Part I — Annexes](sections/18-part-i-annexes-extended-tutorials/_index.md) | 0 | Deprecated aliases, walkthroughs, change log, external standards mappings. |
60+
| 19 | [Part J — Indexes](sections/19-part-j-indexes-navigation-aids/_index.md) | 0 | Concept-to-pattern, pattern-to-example, principle-trace indexes. |
61+
| 20 | [Part K — Lexical Debt](sections/20-part-k-lexical-debt/_index.md) | 2 | Mandatory terminology replacements and migration debt for deprecated terms. |

0 commit comments

Comments
 (0)