framework/core/skills/flowai-skill-adapt-instructions/SKILL.md
Use when AGENTS.md is out of sync with the installed template (after `flowai sync` reports it changed, or user asks to re-adapt/realign AGENTS.md). Reads {ide}/assets/AGENTS.template.md, proposes a merge preserving project sections, writes on approval. Do NOT trigger on small edits.
npx skillsauth add korchasa/flowai flowai-skill-adapt-instructionsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The project root AGENTS.md is derived from a pack-level template distributed with flowai. When the template changes upstream (new rule, renamed section, tightened guidance), the project copy drifts out of sync. This skill brings the project copy back into alignment without losing project-specific content.
The project artifact at <cwd>/AGENTS.md was generated from the template and then customized by the user (project-specific sections: vision, stack, decisions, planning rules). Framework-originated sections (TDD flow, documentation rules, verification rules) MAY be updated upstream; user sections MUST be preserved verbatim.
This skill is the inverse of flowai-init: flowai-init creates AGENTS.md from scratch; flowai-skill-adapt-instructions re-aligns an existing AGENTS.md with an updated template.
</context>
<step_by_step>
Locate the template.
.claude/assets/AGENTS.template.md.cursor/assets/AGENTS.template.md.opencode/assets/AGENTS.template.md.codex/assets/AGENTS.template.md~/.claude/assets/AGENTS.template.md, ~/.cursor/assets/AGENTS.template.md, ~/.config/opencode/assets/AGENTS.template.md, ~/.codex/assets/AGENTS.template.mdflowai sync to install the pack assets, then re-run." and stop.Read the template and the project artifact.
<cwd>/AGENTS.md. If it does not exist, tell the user to run /flowai-init instead and stop — this skill only re-adapts an existing artifact.Compute the diff.
git diff --no-index --exit-code <(echo "$template") <(echo "$artifact") OR in-process string diff via diff tool.## , ### ) as boundaries.Classify each diff hunk.
Show the proposed merge.
Ask for confirmation.
y: write the merged content to <cwd>/AGENTS.md.per-section: walk hunks one by one, ask approve/skip for each.n: report no-op and stop.Verify.
diff again to confirm only intended changes landed.{ide}/assets/AGENTS.template.md. Review and commit."</step_by_step>
End with a one-line status:
AGENTS.md re-adapted. N sections updated; M preserved.AGENTS.md unchanged. Template and artifact already in sync.Aborted by user. AGENTS.md untouched.development
Use when the user asks to add TypeScript strict-mode code-style rules to AGENTS.md for a TypeScript project using strict mode. Do NOT trigger for Deno projects (use setup-agent-code-style-deno) or non-strict TS configurations.
development
Use when the user asks to add Deno/TypeScript code-style rules to AGENTS.md, or during initial Deno project setup when code-style guidelines need to be established. Do NOT trigger for non-Deno TypeScript projects (use setup-agent-code-style-strict), or for runtime-agnostic style advice.
testing
Use when the user provides a source (URL, file path, or free text) to save into the project's memex — a long-term knowledge bank for AI agents. Stores the raw source, extracts entities into cross-linked pages, runs a backlink audit, and updates the index and activity log. Do NOT trigger on casual reads; only when the intent is to persist a source into the memex.
development
Use when the user asks to audit a memex (long-term knowledge bank for AI agents) for orphans, dead SALP REFs, missing sections, contradictions, or index drift. Runs a deterministic structural check, layers LLM-judgement findings, optionally auto-fixes trivial issues with `--fix`. Do NOT trigger on general code linting.