Khaos-Brain: Skill for Codex

.agents/skills/kb-organization-contribute/SKILL.md

kb-organization-contribute is a skill for Codex from liuyingxuvka/Khaos-Brain. It costs 51 tokens per session (1,084 once invoked), scanned A, original, MIT.

A repository-managed export process for sharing reusable local knowledge-base cards with a validated organization repository.

In plain words
What is it for?
Use it when explicitly asked to export shareable local knowledge for organizational review and exchange.
Why use it?
It limits contributions to reviewed incoming files instead of changing the organization's main knowledge directly, and it does nothing in personal mode.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is liuyingxuvka/Khaos-Brain's own configuration. It tells Codex how to work on Khaos-Brain itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Khaos-Brain configures →

Reuse

Borrowing it

Nothing to install: this file belongs to liuyingxuvka/Khaos-Brain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/liuyingxuvka/Khaos-Brain/main/.agents/skills/kb-organization-contribute/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/liuyingxuvka/Khaos-Brain

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kb-organization-contribute

README.md
[![agentmods](https://agentmods.dev/badge/skills/liuyingxuvka/khaos-brain/kb-organization-contribute/github.svg)](https://agentmods.dev/skills/liuyingxuvka/khaos-brain/kb-organization-contribute)
Your own site
<a href="https://agentmods.dev/skills/liuyingxuvka/khaos-brain/kb-organization-contribute"><img src="https://agentmods.dev/badge/skills/liuyingxuvka/khaos-brain/kb-organization-contribute/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kb-organization-contribute

Your own site · 80×15
<a href="https://agentmods.dev/skills/liuyingxuvka/khaos-brain/kb-organization-contribute"><img src="https://agentmods.dev/badge/skills/liuyingxuvka/khaos-brain/kb-organization-contribute.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01084
Opus 5 $0.00026 $0.00542
Sonnet 5 $0.00010 $0.00217
Haiku 4.5 $0.00005 $0.00108

Measured 12d ago against content hash 04174b29b257, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

kb-organization-contribute scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/kb-organization-contribute/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

KB Organization Contribute

Run one organization contribution pass for this predictive KB repository.

The organization KB is a shared exchange layer. Export only reusable material that other local KBs may use directly from a synchronized snapshot; organization acceptance does not override each machine's local retrieval weighting or Sleep judgment.

Contribution writes only to the incoming lane under kb/imports//. It must never write directly to kb/main; organization maintenance is responsible for reviewing imports and moving accepted material into the main exchange surface. Local download/search reads organization cards from kb/main, not from kb/imports.

An organization card is an exchange projection, not local semantic authority. Contribution derives it only from a current exact local LogicGuard binding and must not export projection-only related_cards as relationship authority. A receiving machine uses the source-qualified card directly; only outcome evidence may later cause its local Sleep to change local weight or derive a distinct local candidate. Contribution never writes a receiving machine's model or mesh.

Authority

Work from the repository root. Treat these files as authoritative before stateful contribution work:

  • PROJECT_SPEC.md
  • docs/organization_mode_plan.md
  • .agents/skills/local-kb-retrieve/SKILL.md

Current user instructions still override repository files.

Execution Contract

  1. Use scripts/kb_org_outbox.py --automation as the entry point.
  2. The entry point must first read .local/khaos_brain_desktop_settings.json.
  3. If organization mode is not connected to a validated organization repository, exit successfully with a no-op result.
  4. Sync the validated organization mirror first so contribution compares against current organization main cards and imports before upload. Any retired layout must block this runtime and be handled by the versioned upgrader.
  5. Run KB preflight against system/knowledge-library/organization before exporting any proposals.
  6. Export only shareable model or heuristic projections whose exact local LogicGuard binding is current, public, privacy-safe, and useful at organization scope.
  7. Do not export private cards, personal preferences, credentials, raw local paths, or raw machine identifiers.
  8. Use content hashes for duplicate prevention across exported/uploaded local proposals, current organization catalog cards, imports, and prior contribution receipts. Viewed/selected/used interactions are evidence events, not copies or download/adoption states.
  9. Put eligible local cards into the organization outbox, then automatically prepare and push an organization import branch under kb/imports// when proposals were created.
  10. After branch materialization and immediately before push, revalidate the exact changed files, card counts, content hashes, privacy checkpoint, shareability, Skill author/version/hash metadata, and rollback/base-branch information. A preflight result from before materialization cannot authorize the push.
  11. After a successful revalidation and push, open the organization PR when the repository is on GitHub; apply the org-kb:auto-merge label only when the exact changed files and current checks allow it. On validation, push, PR, or label failure, report the concrete terminal and restore the local mirror rather than claiming a partial contribution.
  12. Leave movement into organization main, trust upgrades, merge approval, and final organization exchange decisions to organization maintenance and GitHub checks.
  13. When a card depends on a local Skill, upload it as a card-bound Skill bundle with bundle_id, content_hash, version_time, original_author, readonly_when_imported: true, and update_policy: original_author_only.
  14. If several local cards point at the same bundle_id, upload the local latest version for that bundle, not an older card-carried copy.
  15. Include Skill dependencies only when card evidence explains when the Skill is useful, what outcome it predicts, and the current unavailable_skill_guidance; otherwise omit the Skill bundle while preserving the card itself without pretending the Skill is available.
  16. Run KB postflight after a non-skipped contribution pass and record the result as structured history.

Read the full file on GitHub · 65 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 65 lines · 51 tokens per session scan A 04174b29b257

Subscribe to this mod's changes

kb-organization-contribute is a skill published in the GitHub repository liuyingxuvka/Khaos-Brain (37 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 1,084 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

knowledge-base

Skill "knowledge-base" from Pinvou/pinvou-agent, covering ima knowledge base, operations, routing rules, examples and file upload guard.

Pinvou/pinvou-agent · 0 tokens

notes

Skill "notes" from Pinvou/pinvou-agent, covering ima notes, operations, write rules, examples and response handling.

Pinvou/pinvou-agent · 0 tokens

shodh-memory

Persistent memory system for AI agents. Use this skill to remember context across conversations, recall relevant information, and build long-term knowledge. Activate when you need to store decisions, learnings, errors, or context that should persist beyond the current session.

varun29ankuS/shodh-memory · 53 tokens

vault

Search, read, write, and manage files in the Kept conversation vault. Use when the user asks about past conversations, wants to save notes, needs to find specific content, or wants to organize their vault.

egroup-labs/kept · 45 tokens

knowledge-ingestion

A skill for saving links, social posts, videos, podcasts, screenshots, PDFs, local files, or text into an Obsidian knowledge base, a personal collection of searchable notes. The ingestion tools analyse and format the material for storage.

lyc403223157-source/knowledge-inbox · 112 tokens

personal-knowledge-ingestion

A skill for saving links, videos, social posts, local files, screenshots, PDFs, or text into an Obsidian vault, a folder used for personal notes and knowledge. It uses connected knowledge tools to process and format the saved item.

lyc403223157-source/knowledge-inbox · 86 tokens