Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Agent Init

ASecurity

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 rules change. Triggers: 'agent init', 'agents.md 생성', '워크스페이스 분석', 'agent guideline 생성', 'agents.md 모듈화', 'agent-init'. Not for LibrAgent runtime/harness facts (use libragent-harness-reference).

10 stars
0 votes
0 copies
0 views
Added 9/28/2026
ai-agentsgotestingrefactoringci/cddocumentation

Security Analysis

A100/100

Scanned 9/28/2026

Install to Claude Code

$npx -y skills add fritzprix/libr-agent --skill agent-init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Init?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Agent Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fritzprix-agent-init/badge)](https://www.skillsdirectory.com/skills/fritzprix-agent-init)

More formats (shields.io, HTML) on the badges page.

Files
SKILL.md
---
name: agent-init
description: "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 rules change. Triggers: 'agent init', 'agents.md 생성', '워크스페이스 분석', 'agent guideline 생성', 'agents.md 모듈화', 'agent-init'. Not for LibrAgent runtime/harness facts (use libragent-harness-reference)."
---

# 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`)**:
   - `agents.md` serves as a quick-reference index and command cheat sheet (<200 lines).
   - Contains high-level project summary, critical user directives, desired persona, cheat sheet commands, and pointers to detailed guide files.
2. **Modular Guide Architecture (`docs/guidelines/`)**:
   - Detailed specifications are split into dedicated files inside `docs/guidelines/`:
     - `architecture-and-files.md`: System layout, key file map, module boundaries.
     - `coding-standards.md`: Style, type safety, error handling, logging, testing, validation commands.
     - `persona-and-rules.md`: User instructions, desired persona/vibe, strict prohibitions, user preferences.
     - `workflows.md`: Dev workflows, CI/CD pipelines, release procedures.
3. **Selective Reading (Progressive Disclosure)**:
   - Agents read `agents.md` on startup and selectively load relevant `docs/guidelines/*.md` files on demand based on current task scope.
4. **Self-Healing & Immediate Updates**:
   - When an agent discovers changed file paths, refactored modules, new build scripts, or updated user instructions, it **immediately updates** the relevant guide file and syncs `agents.md`.
5. **Governance of User Directives & Persona**:
   - User instructions, prohibitions, and desired persona are preserved across sessions and strictly governed.

---

## 📋 Step-by-Step Execution Workflow

### Step 1: Explore Workspace & Discover Information

Scan the workspace root to collect facts:

- **Build & Language Configs**: Check `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`, etc.
- **Directory Structure**: Inspect depth-2 tree (`src/`, `src-tauri/`, `docs/`, `lib/`, `tests/`).
- **Commands**: Extract scripts for dev, build, test, lint, and validation.
- **User Directives & Persona**: Extract existing user instructions, persona files (`SOUL.md`), or explicit chat instructions.

### 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`**:
   - Fill using `references/templates/persona-and-rules-template.md`.
   - Record desired agent persona/vibe, user directives, strict prohibitions, and language preferences.
2. **`docs/guidelines/architecture-and-files.md`**:
   - Fill using `references/templates/architecture-template.md`.
   - Record system architecture diagram, key directory map, key file locations, and layering rules.
3. **`docs/guidelines/coding-standards.md`**:
   - Fill using `references/templates/coding-standards-template.md`.
   - Record formatting/linting rules, type safety rules, error handling conventions, and validation commands.
4. **`docs/guidelines/workflows.md`**:
   - Record dev workflow steps, CI/CD pipeline triggers, and PR requirements.

### 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`:

- Keep `agents.md` concise (<200 lines).
- Fill project overview, high-level persona & user directives, command cheat sheet, and guide file index.
- Ensure all pointer links to `docs/guidelines/*.md` are valid relative paths.

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

When executing future agent tasks in this workspace:

#### 📖 Selective Reading Protocol

- Read `agents.md` for overall routing.
- Read `docs/guidelines/architecture-and-files.md` before refactoring or locating code.
- Read `docs/guidelines/coding-standards.md` before writing/testing code.
- Read `docs/guidelines/persona-and-rules.md` when verifying tone, user preferences, or compliance.

#### 🔄 Immediate Update Protocol (Self-Healing)

- If code structure, file paths, commands, or user directives change during work, **immediately update** the target guide file in `docs/guidelines/` using `workspace__strReplace`.
- Sync `agents.md` if high-level cheat sheets or summaries changed.
- See `references/update-protocol.md` for details.

---

## 🛠️ Resources & Templates

- Entrypoint Template: `references/templates/agents-md-template.md`
- Persona & Rules Template: `references/templates/persona-and-rules-template.md`
- Architecture Template: `references/templates/architecture-template.md`
- Coding Standards Template: `references/templates/coding-standards-template.md`
- Update Protocol Guide: `references/update-protocol.md`
- Merge Policy Guide: `references/merge-policy.md`

Attribution

fritzprixfritzprix
View sourceMore from fritzprix →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

695601 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →