Agent init

From fritzprix/libr-agent · View interactive version

Agent init is an AI agent skill from the GitHub repository fritzprix/libr-agent. Analyze a workspace and generate or maintain a modular project documentation setup with a lean, concise agents.md entrypoint. Governs user directives, precautions, and desired persona, while providing selective on-demand reading of detailed guide files and immediate on-the-fly updates when code or r

How to use this skill

Skill file

Agent Init: Modular Guidelines & Persona Governance

This skill analyzes a workspace and establishes or updates a modular documentation structure with a lean agents.md entrypoint.

It manages user directives, strict precautions, and agent persona while keeping agents.md lightweight to minimize system prompt context bloat.

For how LibrAgent loads agents.md / SOUL.md, tool naming, and session isolation, use libragent-harness-reference instead of baking that into agents.md.


💡 Core Principles

  1. Lean Entrypoint (agents.md):
  1. Modular Guide Architecture (docs/guidelines/):
  1. Selective Reading (Progressive Disclosure):
  1. Self-Healing & Immediate Updates:
  1. Governance of User Directives & Persona:

📋 Step-by-Step Execution Workflow

Step 1: Explore Workspace & Discover Information

Scan the workspace root to collect facts:

Step 2: Create Modular Guide Files in `docs/guidelines/`

Ensure docs/guidelines/ exists and generate the modular files using templates from references/templates/:

  1. docs/guidelines/persona-and-rules.md:
  1. docs/guidelines/architecture-and-files.md:
  1. docs/guidelines/coding-standards.md:
  1. docs/guidelines/workflows.md:

Step 3: Generate or Update Lean `agents.md` Entrypoint

Create or update agents.md at the workspace root using references/templates/agents-md-template.md:

Step 4: Apply On-Demand Reading & Immediate Update Protocols

When executing future agent tasks in this workspace:

📖 Selective Reading Protocol
🔄 Immediate Update Protocol (Self-Healing)

🛠️ Resources & Templates

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.