Skip to content
Back to skills

Init

ASecurity

Auto-evolution skill to initialize a new repository with AGENTS.md localized context.

  • 40 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
developmenttypescriptpythonrustgoreactnextjsnodetestinggitfrontend

Works with

  • cursor
  • cli

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add oimiragieo/agent-studio --skill init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Init?

Add the live security badge to your README. It updates with every re-scan.

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

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: init
description: Auto-evolution skill to initialize a new repository with AGENTS.md localized context.
source: builtin
trust_score: 100
provenance_sha: f09da555064b0ec3
---

# Ecosystem Initialization (Init Skill)

NOTE: This is an auto-evolution skill designed to run when Agent Studio is first deployed into a new repository (e.g., when AGENTS.md does not yet exist).

## When to Use This Skill

Use this skill when you first enter a new codebase, or when the user explicitly asks to "initialize the repository" or "generate AGENTS.md".

## Work Procedure

This skill executes a rigorous 3-stage "Deep Ecosystem Evolution" pipeline.

### Stage 1: Context Gathering & Generation

Analyze the repository root to understand the technology stack and architecture. Specifically, look for and read:

- `README.md`
- `.cursorrules` or `.cursor/rules/`
- `.github/copilot-instructions.md`
- Package manager files (`package.json`, `requirements.txt`, `Cargo.toml`, `go.mod`, etc.)
- Framework config files (`tsconfig.json`, `next.config.js`, `vite.config.ts`, etc.)

**Generate AGENTS.md**
Create or update a centralized `AGENTS.md` file in the repository root containing explicit, localized instruction sets for future Agents working in this codebase.
Include: exact test/build CLI commands, architecture notes, and environment quirks. Do not hallucinate support links. Do not include generic fluff. Show the proposed content to the user for confirmation if `AGENTS.md` already existed but is stale.

### Stage 2: Capability Gap Analysis

Cross-reference the discovered tech stack and repository complexity against the current available global tools (using the `.claude/CLAUDE.md` matrix).

- **If a required capability is missing** (e.g., the repo is heavily dependent on a specific framework like PyO3, but we only have a generic python-engineer):
- Explicitly prompt the user to authorize invoking the `agent-creator` or `skill-creator` to generate bespoke, hyper-localized expert components (e.g., `tensor-grep-rust-worker`).

### Stage 3: Targeted Staleness Audit

Identify **ONLY the subset** of pre-existing agents and skills that are mathematically applicable to this repository's stack (e.g., if it's a TS web app, target `typescript`, `react`, `jest`, `frontend`). _Do not evaluate all 200+ unrelated framework assets._

For each applicable asset:

1. Execute `node .claude/tools/cli/skill-freshness-report.cjs --name [asset-name]` (or manually inspect its YAML frontmatter / git logs) to check its `lastUpdated` or `createdAt` timestamp.
2. **If the applicable asset is > 30 days old**, immediately alert the user and propose spawning an `agent-updater` or `skill-updater` to refresh its instruction context against modern best practices.

## Example Handoff

```json
{
  "salientSummary": "Initialized the repository by scanning package.json and README.md. Detected a Next.js frontend with a Go backend. Generated AGENTS.md with explicit pnpm and Go build commands, testing strategies, and a high-level component map.",
  "whatWasImplemented": "Created AGENTS.md in the repository root. Extracted 4 core architecture rules from .cursorrules. Verified that the test commands provided in AGENTS.md actually execute cleanly.",
  "verification": {
    "commandsRun": [
      {
        "command": "cat package.json | grep 'test'",
        "exitCode": 0,
        "observation": "Found vitest testing configuration."
      }
    ]
  }
}
```

Files in this skill

  • SKILL.md3.4 KB
  • commands/init.md104 B
  • hooks/post-execute.cjs121 B
  • hooks/pre-execute.cjs228 B
  • references/research-requirements.md195 B
  • rules/init.md237 B
  • schemas/input.schema.json271 B
  • schemas/output.schema.json263 B
  • scripts/main.cjs410 B
  • templates/implementation-template.md209 B

Attribution

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

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.