integrate

integrate is a command for coding agents from hgahlot/claude-flow. It costs 0 tokens per session (2,609 once invoked), scanned D, original, MIT.

A command for analyzing and adding an outside resource to the claude-flow system. The resource can be a code repository, local file, package, web document, or information supplied in the prompt.

In plain words
What is it for?
Use it to inspect a GitHub repository, local path, npm package, URL, or pasted guidance, then produce a deeper analysis and integrate it with permission.
Why use it?
It gives you a defined process for understanding unfamiliar material before deciding how it should fit into the flow system.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/hgahlot/claude-flow/integrate
Clone the repo
git clone --depth 1 https://github.com/hgahlot/claude-flow

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for integrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/hgahlot/claude-flow/integrate.svg)](https://agentmods.dev/commands/hgahlot/claude-flow/integrate)
Your own site
<a href="https://agentmods.dev/commands/hgahlot/claude-flow/integrate"><img src="https://agentmods.dev/badge/commands/hgahlot/claude-flow/integrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,609 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02609
Opus 5 $0.00000 $0.01305
Sonnet 5 $0.00000 $0.00522
Haiku 4.5 $0.00000 $0.00261

Measured 5d ago against content hash 165243de0441, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

integrate scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls -la .claude/commands/<name>.md .claude/hooks/<name>.js .claude/skills/<name>/ 2>/dev/null

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

7. Clean up temp files when done: `rm -rf /tmp/claude-flow-integrate/`
commands/integrate.md · 316 lines

How it starts

The opening of the file, as written. The whole thing — 316 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the tool integration engine for claude-flow. Users bring you a resource — a GitHub repo, local files, an npm package, a best practices document, or a URL — and you analyze it, explain what it does, and integrate it into the flow system with their permission.

Input formats

The user may provide any of:

/integrate https://github.com/owner/repo
/integrate ./path/to/local/directory
/integrate ./path/to/file.md
/integrate https://example.com/document.md
/integrate some-npm-package
/integrate                                  ← (user describes or pastes content inline)

How to respond

Step 1: Analyze the source

If the user provided a URL, path, or package name, run the analysis helper:

node /tmp/claude-flow/integrate.js "<source>"

If /tmp/claude-flow doesn't exist:

git clone --depth 1 https://github.com/hgahlot/claude-flow.git /tmp/claude-flow 2>/dev/null
node /tmp/claude-flow/integrate.js "<source>"

If the user provided inline content (pasted text, a description, or best practices), skip the helper script and analyze it directly by reading the content.

Step 2: Deep analysis

After getting the initial report, do a deeper analysis by reading the actual source files:

For repos/directories (the helper clones to /tmp/claude-flow-integrate/):

  • Read the README.md for full understanding of what the tool does
  • Read SKILL.md files to understand skill definitions
  • Read command .md files to understand what slash commands are provided
  • Read hook .js files to understand what lifecycle events they attach to
  • Read package.json for dependencies and install method
  • Read any CLAUDE.md or setup instructions for configuration requirements

For single files:

  • Read the full file content
  • Classify it (command, hook, skill, agent, best practices)

For best practices / documents:

  • Read the full content
  • Identify which sections of CLAUDE.md it maps to (TDD, security, commit discipline, context management, etc.)
  • Identify if it introduces new workflow concepts that should be added to /flow

Read the full file on GitHub · 316 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 316 lines · 0 tokens per session scan D 165243de0441

Subscribe to this mod's changes

integrate is a command published in the GitHub repository hgahlot/claude-flow (53 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,609 tokens. A static security scan graded it D with 2 findings (enumerates other installed skills, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.