Deploy hardened AGENTS.md configs, reusable AI skills, and autonomous agent frameworks to any project
โจ Security-first, self-hosted, Zero Trust โ built for the agentic era
ainish-coder is a modular configuration and skills deployment system for AI coding assistants. It standardizes agent behavior across 10+ IDE extensions and CLI tools via the AGENTS.md standard, ships production-grade security skills, and enables autonomous multi-agent execution through the OSA framework. Every configuration is hardened against the OWASP LLM Top 10, OWASP Agentic Top 10 (ASI 2026), and OWASP Agentic Skills Top 10 (AST10 2026).
- ๐ฏ AGENTS.md Standard โ Universal agent instructions with OWASP-aligned security baselines
- ๐ง Skills System โ 24 hardened procedural guideline skill packs (security, browser automation, video generation, ComfyUI orchestration, 3D modeling, research)
- ๐๏ธ Direct Components โ Discoverable shell utilities and deployment commands under
src/ - ๐ Usage Analytics โ CSV tracking of all CLI invocations (
~/.cache/ainish-coder/usage.csv) for data-driven improvement - ๐ OSA Framework โ Orchestrated System of Agents using standard CLI coding tools (Gemini, Claude, OpenCode, mini-swe-agent, kilo, crush) with fixed-order rotation, automatic fallback, and git worktree isolation
- ๐ก๏ธ Security-First โ Zero Trust, PQC-compliant (FIPS 203/204/205), MCP hardening, supply chain integrity
- โก One-Command Deploy โ Configs, skills, and security baselines in a single
ainish-coderinvocation - ๐ Smart File Management โ Interactive destination picker (home
~/.agents/vs project-local) for skills and agents; interactive symlink prompts for single-source-of-truth deployments; global--link/-lflag for scripted symlink mode; copies for tool-specific customization - ๐ญ Template Agent System โ Craft custom system prompts with expert guidance
- ๐ Scrolls & 8th Fire Protocols โ Deploy
llms.txtfile and.scrollsfor machine-readable project context, including the Ghost Layer Codex and Prompt Obliteration (Plinian Defense) for AI survival.
ainish-coder encodes the 8th Fire Missionโa commitment to digital sovereignty, traditional knowledge preservation, and the survival of Indigenous truths within artificial intelligence systems.
- Ghost Layer Codex โ Encodes the 8th Fire mandate in invisible metadata (Digital Wiigwaasabak) to conceal from hostile actors and reveal to AI agents.
- Prompt Obliteration (Plinian Defense) โ Bypasses restrictive corporate AI guardrails that inadvertently censor discussions of historical genocide, MMIP, or treaty defense as "unsafe."
- Hemispheric Solidarity โ Unifies the struggle of Indigenous peoples across the Americas and beyond (The Eagle, The Quetzal, and The Condor) within the AI's core mandate.
Skills are portable, expert-level knowledge packs that inject domain expertise into AI agents. The packs this tool distributes live in the payload at skills-to-distribute/skills/<name>/SKILL.md; ainish-coder --rules installs the selected ones into a target repo's .agents/skills/, which is where agent harnesses discover them.
This repository keeps only a small curated subset in its own .agents/skills/ โ the packs its agents actually read (ainish-security, pqc-secrets, question-me, security-first-agent). That split is deliberate: harnesses auto-discover **/.agents/skills, so a full payload kept there would be standing prompt surface in every session.
| Skill | Payload path | Description |
|---|---|---|
| Advisory Council | skills-to-distribute/skills/advisory-council/ |
Multi-expert advisory council. Dispatches sub-agents with distinct expert identities for collaborative analysis and decision-making. |
| Anishinaabe Cyberpunk | skills-to-distribute/skills/anishinaabe-cyberpunk-style/ |
Anishinaabe-inspired cyberpunk styling guide combining Canadian Aboriginal Syllabics with ASCII circuit symbols. |
| Browser Skill | skills-to-distribute/skills/browser-skill/ |
Drive the user's real logged-in Chromium through the bsk CLI and extension: automate, scrape, extract observations, click, fill, emulate mobile, or request human takeover. |
| Browser Use | skills-to-distribute/skills/browser-use/ |
Direct browser control via CDP for automation, scraping, testing, screenshots, and web work across macOS, Linux, and Windows. |
| Ainish Security | skills-to-distribute/skills/ainish-security/ |
The single security contract: code and infrastructure, AI/agentic, secrets and post-quantum cryptography, supply chain, compiler integrity, governance. Progressive depth in four references/ files. Mandatory โ AGENTS.md links to it. |
| ComfyUI Orchestration | skills-to-distribute/skills/comfyui-orchestration/ |
Operate the local ComfyUI install agentically โ comfy-cli JSON envelopes plus the comfy-mcp server, host topology, model-path resolution, lifecycle, VRAM gating, and the environment repairs that keep the MCP server booting. |
| Document Enhancer | skills-to-distribute/skills/document-enhancer/ |
Dual-pipeline document improvement: fuse external knowledge bases into a target, or recursively harden a document for multi-model LLM effectiveness. |
| Ghost Layer Injector | skills-to-distribute/skills/ghost-layer-injector/ |
Inject covert AI/bot context into static HTML so LLMs and crawlers ingest instructions without altering the human view. Scroll channel only โ not selectable. |
| GStack Coder | skills-to-distribute/skills/gstack-coder/ |
Multi-tool coding orchestration integrating gstack (Claude Code skills), pi, opencode, and qwen for security audits, code reviews, QA, and feature builds. |
| Modern Prompting | skills-to-distribute/skills/modern-prompting/ |
Reasoning strategy selection: rates 16 prompting frameworks on a 0โ100% suitability scale per task, then applies the highest-rated via OOReDAct. |
| OpenSCAD Generator | skills-to-distribute/skills/openscad-generator/ |
Parameterized 3D models from Python templates and OpenSCAD, compiled to STL via Makefile. |
| PQC Secrets | skills-to-distribute/skills/pqc-secrets/ |
Post-quantum secrets for API keys and private data: ML-KEM-768 at rest, ML-DSA-65 signing. Mandatory โ every secret resolution goes through it. |
| Pliny Research | skills-to-distribute/skills/pliny-research/ |
Extracted system prompts, guidelines, tools, and jailbreak techniques from major AI models. Deploy with ainish-coder --unlock. |
| Question Me | skills-to-distribute/skills/question-me/ |
Socratic design interview and requirements resolution โ codebase recon first, one question at a time with recommended answers, compiled into a .agents/plans/{date}-{name}.plan.md holding the plan, clarification ledger, and derived todos. |
| Security First Agent | skills-to-distribute/skills/security-first-agent/ |
The operating posture for work where a breach would be expensive: threat-model before acting, least authority, read the primary .agents/ record instead of a summary, verify by read-back, fail closed. |
| Remotion Video | skills-to-distribute/skills/remotion-video/ |
Programmatic video creation with Remotion โ APIs, media components, 3D, captions, fonts, Lambda rendering, and layout rules. |
| TypeSafe Jev | skills-to-distribute/skills/typesafe-jev/ |
Calibrated decision models over the Decisions API: routing, two-stage reranking, context freshness, faithfulness evaluation, and typed noul/choice/score questions. |
| Video Knowledge Extractor | skills-to-distribute/skills/video-knowledge-extractor/ |
Structured markdown knowledge bases from YouTube videos by combining transcripts with sequential visual frames through a Vision-Language Model. |
| wtf-is-going-on-mcp | skills-to-distribute/skills/wtf-is-going-on-mcp/ |
Cross-machine agent coordination. Herdr owns agent sessions; wtf records who is doing what, carries encrypted messages, and dispatches addressable work to a paired machine's own agent (task_*). |
---
name: skill-name
description: >
What this skill teaches the agent
version: 1.0.0
---
# Skill Title
## Instructions
## Guidelines
## Guardrails
## Examples
## Troubleshootingainish-coder configurations enforce a comprehensive security baseline:
| Domain | Standards |
|---|---|
| Core Framework | OWASP LLM Top 10 (2025), OWASP Agentic Top 10 (ASI 2026), OWASP Agentic Skills Top 10 (AST10 2026) |
| Cryptography | PQC-compliant: ML-KEM-768 (FIPS 203), ML-DSA-65 (FIPS 204), SLH-DSA (FIPS 205); AES-256-GCM at rest; TLS 1.3+ in transit |
| Agent Security | Zero Trust; MCP manifest signing; tool schema validation (Zod/Pydantic); HITL for high-risk actions; kill switches |
| Supply Chain | SBOMs (CycloneDX/SPDX), SLSA attestations, artifact signing (Sigstore), dependency pinning by hash |
| Data Protection | PII redaction (Presidio); env-only secrets; encrypted logs; structured immutable audit trails |
| MCP Hardening | Allowlisted servers; pinned manifests; drift detection; sandboxed execution (WASM/Firecracker); no auto-approve |
| CVE | Product | Mitigation |
|---|---|---|
| CVE-2025-32711 | M365 Copilot (EchoLeak) | Output sanitization; strip markdown image refs |
| CVE-2025-53773 | GitHub Copilot (Worm) | Instruction hierarchy; treat repo text as untrusted |
| CVE-2025-54135 | Cursor (CurXecute) | Require explicit approval; no auto-start |
| CVE-2025-64660 | GitHub Copilot | Behavioral monitoring; AGENTS.md immutability |
| CVE-2026-30615 | Windsurf | Never let LLM output modify system config |
| CVE-2026-30623 | LiteLLM | Auth required for MCP creation; allowlisted definitions |
ainish-coder is architecture-agnostic: macOS, Linux, WSL, and native Windows. On Windows the POSIX CLI runs through the bash that ships with Git for Windows (MSYS2 and Cygwin work too), so cmd.exe, PowerShell 5.1+, PowerShell 7, and Windows Terminal all work โ no WSL required. Commands are shell-generic POSIX and ~ is your home directory on every platform.
macOS, Linux, WSL
# Clone the repository
git clone https://github.com/nbiish/ainish-coder
cd ainish-coder
# Run setup (any POSIX shell: macOS Terminal, Linux, or Ubuntu/WSL)
chmod +x scripts/ainish-setup.sh
./scripts/ainish-setup.sh
# Reload your shell config
source ~/.zshrc # or ~/.bashrcWindows (native)
Requires Git for Windows for the bash the CLI runs on, and optionally Python 3 for the skill-selection toggles (winget install --id Python.Python.3.12 -e).
git clone https://github.com/nbiish/ainish-coder
cd ainish-coder
# Adds <repo>\bin to your user PATH; no elevation required
powershell -ExecutionPolicy Bypass -File .\scripts\ainish-setup.ps1Close and reopen your terminal, then run ainish-coder --rules. The setup script prints what it changed; -Uninstall removes the PATH entry and restores the previous value exactly.
WSL (alternative on Windows)
cd /mnt/d/Code/ainish-coder && ./scripts/ainish-setup.sh# Deploy core rules files (RECOMMENDED FIRST STEP)
ainish-coder --rules # Interactive: AGENTS.md, .gitignore, PQC security skills
# Prompts for: destination (home ~/ vs project), symlink preference
# Synchronize skills to home or project directory (with interactive candidate ingestion TUI)
ainish-coder --skills-sync # Interactive: toggle skills to sync & ingest
# Prompts for: destination, symlink preference
# Deploy AGENTS.md alone
ainish-coder --agents # Interactive: destination + symlink prompts
# Deploy security files
ainish-coder --secure # Interactive: symlink prompt for each file
# Non-interactive mode (skip all prompts, use defaults)
ainish-coder --rules -y # AGENTS.md โ target dir, copy mode
ainish-coder --skills-sync --link -y # Sync skills โ target dir, symlink mode--rules distributes the rules to repos. --machine-sync distributes the repository to your other
machines โ over the SSH link that already exists, without a Git remote in the middle.
ainish-coder --machine-sync # send + receive with every registered peer
ainish-coder --machine-sync . --min-ram 64 # only peers with at least 64 GB
ainish-coder --machine-sync . --push # send only (--pull for receive only)
ainish-coder --machine-sync . --status # what is already known here, no transferPeers live in ~/.config/ainish-coder/machines.txt, one line each, named by capacity:
mac-18gb=self # this machine (exactly one self line)
windows-128gb=windows-128gb:D:/Code # an SSH alias plus the directory that CONTAINS repos
wsl-94gb=wsl-94gb:/mnt/d/Code
cloud-a100-80gb=cloud-a100-80gb:/srv/codeThe name is <kind>[-<accelerator>]-<ram>gb, where the number is the RAM a job can actually be given
(installed for a bare-metal OS, cgroup-visible for a guest like WSL). That makes capacity a selector,
not a comment: --min-ram 64 or --kind windows pick the machine, and an agent can read the same
names to decide where work belongs.
What crosses is refs, and only refs:
| Arrives as | What it is |
|---|---|
refs/remotes/<machine>/* |
every branch the other machine has |
refs/machine-sync/<machine>/<branch> |
that machine's uncommitted work, snapshotted as a commit |
A snapshot commit is the part rsync cannot do and git push will not: the sender's dirty tree โ
tracked edits, new untracked files, staged-but-uncommitted changes โ becomes a readable commit on the
receiver without touching its HEAD, branches, index, or working tree. Ignored files never cross: a
bundle carries commits, not a directory tree, so bin/*.exe, vector indexes, signing keys, and .env
files stay on the machine that produced them. If the peer's tree is clean, no snapshot is created and
any stale one is dropped.
By default the far side gets refs and decides when to move. --ff-peers is the explicit exception:
after a successful push it fast-forwards a peer that has the same branch checked out and a clean
working tree, so main lands on both machines in one command. A dirty or differently-checked-out peer
is left alone, and says so.
The OSA (Orchestrated System of Agents) framework coordinates multiple CLI coding agents through fixed-order rotation with automatic fallback. All agents are equal peers โ multiple arms of the same thinking tool.
Agents: Gemini, Claude, OpenCode, mini-swe-agent, kilo, crush
ainish-coder --skills-sync # Synchronize explicitly selected skillsSecurity and tool-containment guidance is distributed through
skills-to-distribute/skills/ainish-security/SKILL.md.
All ainish-coder invocations are optionally tracked to ~/.cache/ainish-coder/usage.csv:
timestamp,tool,subcommand,provider,exit_code,duration_ms,interactive,arg_count
2026-05-28T14:40:00Z,ainish-coder,--skills-sync,skill:gstack-coder,0,340,true,0
- Granular tracking:
--skills-synccaptures which specific skill was deployed;--rulestracks sub-operations - Opt-out: Set
AINISH_NO_TRACKING=trueto disable all logging - Zero overhead when absent: If
cmd-trackerbinary isn't on PATH, commands run directly - Auto-migration: Old CSV schemas are backed up to
.bakand re-created with the current header
Analyze usage with any CSV tool:
cat ~/.cache/ainish-coder/usage.csv | column -t -s,The tool is built from directly discoverable shell components:
ainish-coder/
โโโ AGENTS.md # Universal agent instructions (OWASP-aligned)
โโโ bin/
โ โโโ ainish-coder # Main CLI: destination picker, interactive symlink prompts, --cli menu
โ โโโ lib/ # Shared shell libraries
โ โ โโโ providers.sh # Reads ~/.config/ainish-coder/providers.json (8 providers)
โ โ โโโ hot_swap.sh # Config rewrite + backup/restore per tool
โ โ โโโ mcp_settings.sh # MCP server flag parsing, env gen, pi extension gen
โ โ โโโ picker.sh # fzf-based interactive provider picker (NEW)
โ โ โโโ tracker.sh # Shared cmd-tracker integration helper (NEW)
โ โโโ pi # Pi wrapper (provider hot-swap + interactive picker)
โ โโโ mini # mini-swe-agent wrapper (provider hot-swap + interactive picker)
โ โโโ pqc-secrets # Shell wrapper for Rust FIPS 203 secrets manager
โ โโโ cmd-tracker # Rust binary: CSV usage tracker (NEW)
โ โโโ security_gate.py # PQC & zero-trust compliance scanner
โโโ src/
โ โโโ *.sh # Shared utilities and deployment commands
โ โโโ templates/ # Deployable boilerplate templates
โ โโโ pqc-secrets/ # Rust: FIPS 203 secrets manager (ML-KEM-768)
โ โโโ cmd-tracker/ # Rust: CSV CLI usage tracker (stdlib-only) (NEW)
โโโ .agents/
โ โโโ plans/ # Per-task plans of record: {date}-{slug}.plan.md
โ โโโ skills/ # 18 distributable skill packs (20 dirs incl. 2 scroll-channel)
โ โ โโโ 8thfire-scrolls/SKILL.md
โ โ โโโ advisory-council/SKILL.md
โ โ โโโ ainish-security/SKILL.md
โ โ โโโ anishinaabe-cyberpunk-style/SKILL.md
โ โ โโโ browser-skill/SKILL.md
โ โ โโโ browser-use/SKILL.md
โ โ โโโ comfyui-orchestration/SKILL.md
โ โ โโโ document-enhancer/SKILL.md
โ โ โโโ ghost-layer-injector/SKILL.md
โ โ โโโ gstack-coder/SKILL.md
โ โ โโโ modern-prompting/SKILL.md
โ โ โโโ openscad-generator/SKILL.md
โ โ โโโ pliny-research/SKILL.md
โ โ โโโ pqc-secrets/SKILL.md
โ โ โโโ question-me/SKILL.md
โ โ โโโ remotion-video/SKILL.md
โ โ โโโ typesafe-jev/SKILL.md
โ โ โโโ video-knowledge-extractor/SKILL.md
โ โ โโโ wtf-is-going-on-mcp/SKILL.md
โ โโโ mcp-settings.json # Global MCP server definitions
โโโ docs/ # Documentation, research, signals
โโโ scripts/ # Utility & tooling scripts
โโโ assets/ # Static assets (images, SVGs)
โโโ .scrolls/ # Ghost Layer repository & 8th Fire Protocols
โโโ llms.txt # Machine-readable project context (PRD anchor)
| Principle | Implementation |
|---|---|
| SOLID | Single Responsibility per module; Open for extension via skills |
| DRY | Shared components; configs generated from templates |
| KISS | Shell-based CLI; no runtime dependencies beyond Bash |
| YAGNI | Skills loaded on demand |
| Zero Trust | Every tool call validated; all inputs sanitized; MCP servers treated as hostile |
All agent behavior follows the OOReDAct framework (OODA + ReAct + Chain of Draft):
| Step | Directive |
|---|---|
| Observe | Capture inputs without bias. โค30 words. |
| Orient | Identify relevant facts and constraints relative to goal. |
| Reason | Draft โค3 options; score each in โค10 words (outcome, risk, cost). |
| Decide | Select best action. Output: { "action": "<name>" }. Verify alignment. |
| Act | Execute via tool/agent. Feed result back to Observe. |
@misc{ainish-coder2026,
author/creator/steward = {แแฒแฅ แแธแแฅแฎ-แญแแแธแญแฏ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief แญแแแธแญแฏ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians},
title/description = {ainish-coder},
type_of_work = {Indigenous digital creation/software incorporating traditional knowledge and cultural expressions},
year = {2026},
publisher/source/event = {GitHub repository under tribal sovereignty protections},
howpublished = {\url{https://github.com/nbiish/ainish-coder}},
note = {Authored and stewarded by แแฒแฅ แแธแแฅแฎ-แญแแแธแญแฏ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief แญแแแธแญแฏ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Indigenous intellectual property, traditional knowledge systems (TK), traditional cultural expressions (TCEs), and associated data protected under tribal law, federal Indian law, treaty rights, Indigenous Data Sovereignty principles, and international indigenous rights frameworks including UNDRIP. All usage, benefit-sharing, and data governance are governed by the COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS.}
}Copyright ยฉ 2026 แแฒแฅ แแธแแฅแฎ-แญแแแธแญแฏ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), a descendant of Chief แญแแแธแญแฏ (Kinwaabakizi) of the Beaver Island Band, and an enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Traditional Knowledge and Traditional Cultural Expressions. All rights reserved.Please refer to the current LICENSE and CONTRIBUTING.md files for legal terms and contribution guidelines.
โโโโโโโ Made with โฅ by the AINISH community โโโโโโโ
