agent-integrator
Updates the AGENTS.md file to register SynthesisFlow skills for AI discovery.
Install
mkdir -p .claude/skills/agent-integrator && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/19156" && unzip -o skill.zip -d .claude/skills/agent-integrator && rm skill.zipInstalls to .claude/skills/agent-integrator
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use this skill to create or update the root AGENTS.md file to register SynthesisFlow skills for AI agent discovery. Triggers include "register SynthesisFlow", "update AGENTS.md", "setup agent guide", or initializing a new project.Key capabilities
- →Create the root AGENTS.md file if it is missing
- →Update the SynthesisFlow section within an existing AGENTS.md
- →Register SynthesisFlow skills for AI agent discovery
- →Ensure AI agents can discover available SynthesisFlow capabilities
- →Preserve other content in AGENTS.md during updates
- →Commit changes to AGENTS.md to the repository
How it works
The skill uses an idempotent helper script to create or update the `AGENTS.md` file, inserting or replacing the SynthesisFlow section while preserving other content, to enable AI agent discovery.
Inputs & outputs
When to use agent-integrator
- →Register new skills
- →Update agent documentation
- →Initialize project agent guide
About this skill
Agent Integrator Skill
Purpose
Idempotently create or update the AGENTS.md file in a project to register SynthesisFlow skills for discovery by AI agents. This skill ensures that any compatible AI agent working in the repository can discover and use the SynthesisFlow methodology and available skills.
When to Use
Use this skill in the following situations:
- After running project-init to initialize SynthesisFlow in a new project
- When installing SynthesisFlow skills in an existing project
- After adding new skills to the
.claude/skills/directory - Updating the agent guide with new workflow information
- Ensuring AI agents can discover available SynthesisFlow capabilities
Prerequisites
- Project has
.claude/skills/directory with SynthesisFlow skills installed - Write permissions to project root directory
- Optional: Existing AGENTS.md file (script creates if missing)
AGENTS.md Purpose
The AGENTS.md file serves as a discovery mechanism for AI agents:
- Agent Discovery: AI agents read this file to learn about available workflows
- Methodology Documentation: Explains SynthesisFlow philosophy and core principles
- Skill Catalog: Lists all available skills and their purposes
- Getting Started: Provides entry point for new agents working in the project
Workflow
Step 1: Determine If Update Is Needed
Check if AGENTS.md needs to be created or updated:
# Check if file exists
ls -la AGENTS.md
# Check if SynthesisFlow section exists
grep "SYNTHESIS_FLOW" AGENTS.md
Step 2: Run the Helper Script
Execute the script to update AGENTS.md:
# Use default location (AGENTS.md in project root)
bash scripts/update-agents-file.sh
# Or specify custom location
bash scripts/update-agents-file.sh -f path/to/custom-agents.md
Step 3: Understand What the Script Does
The helper script uses an idempotent update strategy:
-
Creates file if missing:
- Uses
touchto ensure target file exists - Safe to run even if file doesn't exist yet
- Uses
-
Checks for existing content:
- Looks for
<!-- SYNTHESIS_FLOW_START -->marker - Determines if this is an update or initial creation
- Looks for
-
Updates existing content:
- If markers found, replaces content between markers
- Preserves any other content in the file
- Uses awk to safely replace marked section
-
Adds new content:
- If markers not found, appends SynthesisFlow guide to end of file
- Adds both start and end markers for future updates
-
Preserves other content:
- Only modifies content between markers
- Safe to run multiple times (idempotent)
- Won't overwrite other project documentation
Step 4: Verify the Update
Check that AGENTS.md was updated correctly:
# View the file
cat AGENTS.md
# Verify markers are present
grep -A 5 "SYNTHESIS_FLOW_START" AGENTS.md
Step 5: Commit the Changes
If the update looks correct, commit to the repository:
git add AGENTS.md
git commit -m "docs: Update AGENTS.md with SynthesisFlow guide"
git push
Error Handling
Permission Denied
Symptom: Script cannot write to AGENTS.md
Solution:
- Check file permissions:
ls -la AGENTS.md - Ensure you have write access to project root
- Run with appropriate permissions
Marker Corruption
Symptom: Content between markers is malformed
Solution:
- Manually edit AGENTS.md to fix markers
- Ensure both
<!-- SYNTHESIS_FLOW_START -->and<!-- SYNTHESIS_FLOW_END -->are present - Re-run script to regenerate content
Custom File Path Issues
Symptom: Script creates file in wrong location
Solution:
- Use
-fflag with full path:bash scripts/update-agents-file.sh -f /full/path/to/file.md - Verify path exists:
mkdir -p /path/to/directory - Check current working directory
Notes
- Idempotent design: Safe to run multiple times without side effects
- Preserves other content: Only updates content between markers
- Marker-based: Uses HTML comments as markers (invisible in rendered markdown)
- Default location: AGENTS.md in project root (standard convention)
- Custom locations: Use
-fflag for alternative file paths - Run after setup: Typically run once after project-init, then rarely
- Update when skills change: Re-run if new skills are added or removed
- AI agent discovery: Helps agents understand available SynthesisFlow capabilities
- Version control: Commit AGENTS.md so all contributors see the guide
When not to use it
- →When the project does not have a `.claude/skills/` directory
- →When the task is not related to SynthesisFlow skills or agent discovery
- →When the task involves modifying content outside the SynthesisFlow markers
Prerequisites
Limitations
- →It requires write permissions to the project root directory
- →It relies on the presence of `<!-- SYNTHESIS_FLOW_START -->` and `<!-- SYNTHESIS_FLOW_END -->` markers for updates
- →It only modifies content between the specified markers
How it compares
This skill provides an idempotent and marker-based method to manage `AGENTS.md` for AI agent discovery, ensuring consistent updates without overwriting other documentation, unlike manual file editing.
Compared to similar skills
agent-integrator side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| agent-integrator (this skill) | 0 | 7mo | Review | Beginner |
| skill-builder | 0 | 4mo | Review | Advanced |
| using-superpowers | 95 | 2mo | No flags | Beginner |
| ultrawork | 11 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Reading-Advantage-Thailand
View all by Reading-Advantage-Thailand →You might also like
skill-builder
diegosouzapw
Router for skill creation: routes doc/repo-to-skill codification or routes to skill-creator for authoring. Use for doc-to-skill, new skills, or merging skills.
using-superpowers
obra
Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists
ultrawork
Yeachan-Heo
Parallel execution engine for high-throughput task completion
clawhub
openclaw
Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawhub CLI.
skill-installer
openai
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
notion-knowledge-capture
makenotion
Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.