diff --git a/create-git-release-using-fork-gitea.md b/create-git-release-using-fork-gitea.md new file mode 100644 index 0000000..fefc72b --- /dev/null +++ b/create-git-release-using-fork-gitea.md @@ -0,0 +1,52 @@ +# Creating a New Git Release Using Fork + Gitea + +1. In Fork: + + * Make sure all changes are committed + * Push latest commits to Gitea + +2. Create a tag in Fork: + + * Repository → Tags + * Create Tag + * Tag name: + v0.1.0 + * Use “Annotated Tag” + * Add message: + Initial AI-native publishing system release + +3. Push the tag: + + * Click Push in Fork + * Ensure the new tag is checked + * Push to Gitea + +4. In Gitea: + + * Open repo + * Click Releases + * Click New Release + +5. Select the EXISTING tag: + v0.1.0 + +6. Add: + + * Release title + * Release notes + * Optionally check “Pre-release” + +7. Click Publish Release + +Result: + +* v0.1.0 becomes a permanent frozen snapshot of the entire project at that moment in time. +* Future edits and commits do NOT change v0.1.0. +* You can always restore, download, compare, or branch from that release later. + +Recommended workflow: + +* frequent commits +* milestone-based releases +* main branch = stable +* dev branch = Codex/AI experimentation diff --git a/garry-tan-gbrain-skills-analysis.md b/garry-tan-gbrain-skills-analysis.md new file mode 100644 index 0000000..29ece29 --- /dev/null +++ b/garry-tan-gbrain-skills-analysis.md @@ -0,0 +1,159 @@ +# Analysis of Gbrain skills + +see Gbrain Repo Analysis + +Yes, this /skills/ directory is very useful for your work. The author is using skills as operational recipes for agents, not as documentation. That distinction is the main lesson. + +A GBrain skill says: + +When this kind of situation happens, +here is the workflow, +here are the guarantees, +here are the tools, +here is what good output looks like, +here is what must never happen. +What The Author Does +Each skill follows a repeatable shape: + +--- +name: +version: +description: +triggers: +tools: +mutating: +writes_pages: +writes_to: +--- +Then the body usually contains: + +Contract +Phases +Output Format +Anti-Patterns +Tools Used +That is simple, but powerful. The skill is both a prompt and a governance artifact. + +The author also separates routing from execution. skills/RESOLVER.md is the dispatcher. Individual SKILL.md files are the workflows. This is very relevant to your CIS project: you probably want a RESOLVER.md-style file that decides whether to use authoring, chunking, cis-selection, qa-generation, relationship-extraction, publish, etc. + +Why It Works +The best pattern is that skills are not just instructions. They are contracts. + +For example, query guarantees citation grounding and gap reporting. meeting-ingestion guarantees attendee enrichment and timeline propagation. enrich guarantees tiered effort and meaningful pages. maintain guarantees health checks and graph extraction. + +That means an agent can know when it has finished, and a human can audit whether it behaved correctly. + +Best Practices To Steal +Use skill frontmatter for machine routing: + +name: cis-chunk-generator +version: 1.0.0 +description: | + Generate project-appropriate JSON chunks using the CIS reference envelope. +triggers: + - "generate chunks" + - "create CIS chunks" + - "structure this page for AI" +tools: + - read + - write + - schema_validate +mutating: true +writes_to: + - data/chunks/ +Use a Contract section. This may be the single most important pattern. + +For your chunk skill, the contract might say: + +This skill guarantees: +- Every chunk has stable knowledge_id, chunk_id, and content hash +- CIS fields are selected intentionally, not copied wholesale +- Each chunk has retrieval metadata and reasoning metadata +- Relationships are explicit and typed when discoverable +- Uncertain enrichment is stored as proposed assertions, not facts +Use Phases instead of vague guidance. GBrain’s skills are procedural. Your skills should be too: + +Phase 1: Read source page +Phase 2: Identify chunk boundaries +Phase 3: Choose CIS subset for this project +Phase 4: Generate base chunks +Phase 5: Generate Q&A +Phase 6: Extract entities and relationships +Phase 7: Validate IDs, hashes, schema, and links +Phase 8: Produce resolved/public outputs +Use Anti-Patterns aggressively. GBrain does this well. It tells the agent what failure looks like. + +For you: + +Anti-Patterns: +- Copying the full CIS envelope into every simple chunk +- Inventing relationships without confidence/provenance +- Changing knowledge_id after minor wording edits +- Treating policy/pricing as canonical content +- Re-chunking when only interpretation changed +Use shared conventions. GBrain has skills/conventions/quality.md, brain-first.md, _output-rules.md, and filing rules. You should likely have equivalents: + +skills/conventions/cis-core.md +skills/conventions/id-policy.md +skills/conventions/relationship-types.md +skills/conventions/assertion-ledger.md +skills/conventions/output-json.md +skills/conventions/publishing.md +This keeps every skill from repeating the same rules. + +The Big Pattern +GBrain has an excellent split: + +RESOLVER.md = when to use each skill +SKILL.md = how to execute the workflow +conventions/ = rules every skill shares +manifest.json = machine-readable inventory +routing-eval.jsonl = examples that test routing +conformance tests = enforcement +For your system, I’d mirror that almost exactly. + +How I’d Adapt It For Your Project +Your skill system could look like: + +skills/ + RESOLVER.md + manifest.json + conventions/ + cis-field-selection.md + identity-versioning.md + relationship-ontology.md + assertions.md + output-quality.md + author-content-structuring/ + SKILL.md + cis-subset-selection/ + SKILL.md + chunk-json-generation/ + SKILL.md + qa-generation/ + SKILL.md + relationship-extraction/ + SKILL.md + ai-index-generation/ + SKILL.md + publish-static-site/ + SKILL.md + validate-knowledge-build/ + SKILL.md +The most GBrain-like thing you can do is add a validate-knowledge-build skill. It should check: + +- every chunk has IDs +- every content hash matches +- every relationship target resolves +- every selected CIS field is allowed by the project schema +- every paid chunk has a preview or access rule +- every ai-index entry points to real files +- deprecated chunks have supersession lineage +That becomes your equivalent of GBrain’s maintain skill. + +Most Important Learning +Do not make skills passive docs. Make them agent execution contracts. + +Your CIS is the deep reference architecture. But each skill should be narrow, opinionated, testable, and operational. GBrain’s author is very good at this: each skill encodes judgment, workflow, failure modes, and quality bars. + +That’s exactly what your CIS process needs as it scales. \ No newline at end of file