janblade

AI OS Self — Security skill for Claude Code

Security community

MaiKS is a microkernel-inspired governance layer that runs inside your project workspace.

How to install AI OS Self

This entry records only its repository, not the path inside it, so there is no exact command to give. Open janblade/MaiKS and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI OS Self does

MaiKS is a microkernel-inspired governance layer that runs inside your project workspace. It adds rules, a pre-write security check, and persistent memory to AI coding agents (Claude Code, Gemini, Copilot, Cursor, Windsurf) working in your codebase.

Alternatives in Security

  • Google Workspace Model Armor — Filter user-generated content for safety 21.6k ★
  • Pocketpaw — Your AI agent in 30 seconds 775 ★
  • Memory Self Review — Mine recent agent history (claude-mem + usage stats) for recurring failures and repeated patterns, audit MEMOR 297 ★

README

MaiKS

MaiKS is a microkernel-inspired governance layer that runs inside your project workspace. It applies rules, a pre-write security check, and persistent memory to AI coding agents (Claude Code, Antigravity/Gemini, GitHub Copilot, Cursor, Windsurf) working in your codebase.

**Deterministic, Git-Native Memory** Instead of a vector database (RAG), MaiKS stores memory as plain Markdown and JSON files alongside your code, organized as a Hub (global project knowledge) and Spokes (per-branch task notes). When someone clones the repo, their AI reads the same project knowledge, decision history, and custom skills — no external database required.


Key Features

  • Microkernel Structure: Separation between kernel space (rules, configuration) and user space (skills, memory, commands).
  • PDCA Self-Evolution: A Plan-Do-Check-Act lifecycle. If the AI finds a more efficient pattern, it can propose and apply upgrades to its own workflows and skills, with rollback if integrity checks fail.
  • Flexible Agent Delegation: The primary agent acts as a coordinator that can edit code directly, or delegate complex, multi-file work to specialized subagents if the host environment supports it.
  • Automatic Peer Review: A single agent grading its own work has a structural blind spot. An independent review pass — a separate reviewer subagent where the host supports it, an honestly-labeled cold self-review where it doesn't — now runs by default: once per plan (or per epic story) when working a PLAN_WRITE plan, and on a plan-less "implement this feature" request routed there from the boot core. The pass checks five things — correctness, conventions, security, test coverage, and ownership fit ("would the owner of this repo merge this diff as-is, or is it in the wrong place / at the wrong abstraction / under-designed even though it works?"). Findings surface to you; it's a second opinion, not a merge gate.
  • Pre-Mutation Security Checklist: A secu