Implementation plan

From petrowsky/agentic-fm · View interactive version

Implementation plan is an AI agent skill from the GitHub repository petrowsky/agentic-fm. Structured planning before script creation — decompose requirements, identify dependencies, surface FM-specific constraints, and confirm approach before generating code. Use when the developer says "plan this", "plan before coding", "decompose requirements", "implementation plan", or when the agent

How to use this skill

Skill file

Implementation Plan

Decompose a script or feature request into a structured plan before generating any code. This skill produces a written plan in the conversation — not a file artifact — that the developer can review and adjust before the agent proceeds to generation.


When to use

When NOT to use


Step 1: Gather context

Read agent/CONTEXT.json if it exists. Extract:

If CONTEXT.json is absent or stale (doesn't match the developer's request), suggest running Push Context on the relevant layout before proceeding.


Step 2: Decompose the requirement

Break the request into discrete concerns. For each, identify:

  1. What it does — the business logic in plain language
  2. What FM objects it needs — fields, layouts, scripts, value lists, custom functions
  3. What could go wrong — error conditions, empty found sets, missing records, locked records
  4. FM-specific constraints — layout context requirements, commit timing, server vs client differences

Present as a structured outline:

## Plan: [Feature Name]

### 1. Input validation
- Parse script parameter (JSON expected)
- Guard: exit if parameter is empty or malformed

### 2. Navigate to context
- Go to Layout [ "Invoice Details" ] — requires Invoices TO
- Perform Find for the target record
- Guard: error 401 (no records found)

### 3. Business logic
- Calculate totals from Line Items portal
- Set Field [ Invoices::Status ; "Sent" ]
- Guard: error 301 (record locked)

### 4. Subscript calls
- Perform Script [ "Send Email" ] — needs script ID from CONTEXT.json
- Check Get ( ScriptResult ) for success/failure

### 5. Cleanup
- Go to Layout [ original layout ]
- Exit Script [ result JSON ]

Step 3: Surface dependencies and risks

After the outline, explicitly call out:

Objects needed

List every FM object the script will reference, with where to find the ID:

Missing context

If the plan requires objects not in CONTEXT.json, say so:

Error handling strategy

State which pattern will be used:

Server compatibility

Flag if the script must run on FileMaker Server (PSOS, scheduled, Data API):


Step 4: Confirm with the developer

Present the plan and ask for confirmation before proceeding to code generation. Specifically ask:

If the developer approves, the plan becomes the specification for script-preview or direct fmxmlsnippet generation.


Output format

The plan is written directly in the conversation as markdown. No file artifact is created unless the developer requests one (e.g., "save this plan to plans/").

If called by another skill (e.g., script-refactor), the plan is produced inline and the calling skill proceeds without waiting for explicit developer confirmation — the plan serves as the agent's reasoning record.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.