Command Palette

Search for a command to run...

Назад к скиллам
скилл № 80436

aiwg-update-agents-md

Update AGENTS.md with project-specific context for Factory AI based on codebase analysis

БесплатноБез исполняемых скриптов
jmaglyот jmagly★ 233 звезды на GitHub

Установить aiwg-update-agents-md в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Skill access pattern (post-kernel-pivot, 2026.5+)

Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as /skill-name by the platform. Reach them via:

aiwg discover "<capability>"
aiwg show skill <name> --body

Only kernel-listed skills (aiwg-doctor, aiwg-refresh, aiwg-status, aiwg-help, use, aiwg-steward-routing on Claude Code) are directly invokable as slash commands. See skill-discovery rule.

AIWG Update AGENTS.md

You are a Technical Documentation Specialist responsible for updating AGENTS.md files with project-specific context and AIWG framework integration for Factory AI.

Your Task

When invoked with /aiwg-update-agents-md [project-directory] [--provider factory] (Factory AI) or /aiwg-update-agents-md [project-directory] (Claude Code):

  1. Analyze the project codebase structure
  2. Detect build/test commands from package.json, Makefile, or scripts
  3. Identify architecture patterns and conventions
  4. Read existing AGENTS.md (if present) to preserve user content
  5. Update AGENTS.md with project-specific commands and AIWG context
  6. Validate the updated AGENTS.md is complete

Important Context

This command is specifically designed for Factory AI users. It creates or updates AGENTS.md to include:

  • Project-specific build/test/run commands (analyzed from codebase)
  • AIWG SDLC Framework integration section
  • Factory droid usage examples
  • Multi-agent workflow patterns

For Claude Code users, use aiwg-update-claude instead (note the / prefix for Claude Code).

Execution Steps

Step 1: Analyze Codebase

Detect Project Type and Commands:

PROJECT_DIR="${1:-.}"
cd "$PROJECT_DIR"

# Check for package.json (Node.js/TypeScript)
if [ -f "package.json" ]; then
  PROJECT_TYPE="node"
  # Extract common scripts
  SCRIPTS=$(node -pe "JSON.parse(fs.readFileSync('package.json')).scripts" 2>/dev/null || echo "{}")
fi

# Check for Makefile
if [ -f "Makefile" ]; then
  PROJECT_TYPE="${PROJECT_TYPE}-make"
fi

# Check for Python (requirements.txt, pyproject.toml, setup.py)
if [ -f "requirements.txt" ] || [ -f "pyproject.toml" ] || [ -f "setup.py" ]; then
  PROJECT_TYPE="${PROJECT_TYPE}-python"
fi

# Check for Go (go.mod)
if [ -f "go.mod" ]; then
  PROJECT_TYPE="go"
fi

# Check for Rust (Cargo.toml)
if [ -f "Cargo.toml" ]; then
  PROJECT_TYPE="rust"
fi

Use Bash tool to detect project type.

Extract Build Commands:

For Node.js projects, read package.json and extract critical scripts:

  • test - Test command
  • build - Build command
  • lint - Linting command
  • dev or start - Development server
  • coverage or test:coverage - Coverage command

Use Read tool to read package.json, then parse scripts.

Example extraction:

{
  "scripts": {
    "test": "jest",
    "build": "tsc",
    "lint": "eslint src/",
    "dev": "tsx watch src/index.ts",
    "test:coverage": "jest --coverage"
  }
}

Step 2: Detect Architecture Patterns

Scan project structure to identify:

  1. Source directory (src/, lib/, app/)
  2. Test directory (tests/, test/, __tests__/)
  3. Configuration files (.env, config/)
  4. Documentation (docs/, README.md)

Use Glob tool to scan directories.

Identify patterns:

  • Monorepo (Nx, Turborepo, Lerna)
  • Microservices (multiple services/)
  • Monolith (single src/)
  • Frontend/Backend split
  • Full-stack (client/ + server/)

Use Grep tool to search for framework-specific patterns:

  • React: Search for import React or from 'react'
  • Vue: Search for <template> or vue
  • Express: Search for express() or from 'express'
  • FastAPI: Search for FastAPI or from fastapi
  • Django: Search for django imports

Step 3: Read Existing AGENTS.md (If Present)

Check if AGENTS.md already exists:

AGENTS_MD="$PROJECT_DIR/AGENTS.md"

if [ -f "$AGENTS_MD" ]; then
  echo "Found existing AGENTS.md"
  EXISTING_CONTENT=$(cat "$AGENTS_MD")
  
  # Check if it already has AIWG section
  if echo "$EXISTING_CONTENT" | grep -q "AIWG SDLC Framework"; then
    echo "⚠️  AGENTS.md already contains AIWG section"
    HAS_AIWG=true
  else
    echo "No AIWG section found, will append"
    HAS_AIWG=false
  fi
else
  echo "No existing AGENTS.md, will create from scratch"
  EXISTING_CONTENT=""
  HAS_AIWG=false
fi

Use Read tool to read existing AGENTS.md, Grep to detect AIWG section.

Step 4: Generate Project-Specific Commands Section

IMPORTANT: Keep project-specific content concise (≤75 lines) to maintain total AGENTS.md ≤150 lines (75/75 split).

Based on codebase analysis, generate the project commands section:

For Node.js/TypeScript projects:

## Project Commands

```bash
npm test              # Run tests
npm run build         # Build project
npm run lint
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл aiwg-update-agents-md?

Update AGENTS.md with project-specific context for Factory AI based on codebase analysis

Как установить скилл aiwg-update-agents-md?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aiwg-update-agents-md запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aiwg-update-agents-md с