[{"data":1,"prerenderedAt":228},["ShallowReactive",2],{"doc:\u002Fv\u002F2026.3\u002Fbuild-with-ai\u002Fprompts-and-agents-md-for-coding-agents":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"section":10,"version":11,"lastUpdated":12,"body":13,"_type":150,"_id":223,"_source":224,"_file":225,"_stem":226,"_extension":227},"\u002Fv\u002F2026.3\u002Fbuild-with-ai\u002Fprompts-and-agents-md-for-coding-agents","build-with-ai",false,"","Prompts and AGENTS.md for coding agents","Copy-paste prompts for a lead screen, proposal drafts, and a task board, plus an AGENTS.md snippet that keeps a coding agent on the Workspace369 tools.","Build with AI","2026.3","2026-10-18",{"type":14,"children":15,"toc":215},"root",[16,33,47,54,59,70,76,81,90,103,109,118,124,145,156,162],{"type":17,"tag":18,"props":19,"children":20},"element","p",{},[21,24,31],{"type":22,"value":23},"text","A coding agent builds better when it knows which tools to use and which to leave alone. This article gives you three prompts and a short instruction file you can add to a project. Each prompt uses tools that exist in the Workspace369 MCP server today. Connect your agent first with ",{"type":17,"tag":25,"props":26,"children":28},"a",{"href":27},"\u002Fv\u002F2026.3\u002Fbuild-with-ai\u002Fbuild-a-custom-crm-with-an-ai-coding-agent\u002F",[29],{"type":22,"value":30},"Build a custom CRM with an AI coding agent",{"type":22,"value":32},".",{"type":17,"tag":18,"props":34,"children":35},{},[36,38,45],{"type":22,"value":37},"All prompts assume the agent already has the ",{"type":17,"tag":39,"props":40,"children":42},"code",{"className":41},[],[43],{"type":22,"value":44},"workspace369",{"type":22,"value":46}," MCP server and that an admin has turned MCP on.",{"type":17,"tag":48,"props":49,"children":51},"h2",{"id":50},"prompt-1-a-client-and-lead-screen",[52],{"type":22,"value":53},"Prompt 1: a client and lead screen",{"type":17,"tag":18,"props":55,"children":56},{},[57],{"type":22,"value":58},"This builds a lead inbox and a client list, with prospects and clients kept apart.",{"type":17,"tag":60,"props":61,"children":65},"pre",{"className":62,"code":64,"language":22,"meta":7},[63],"language-text","Build a lead and client screen for my team using the workspace369 MCP tools.\nDo not create your own tables for clients or leads.\n\n1. Lead inbox: call requests_search with status \"new\". Show name, email,\n   phone, message, and form. Follow nextCursor until there are no more pages.\n2. A \"Convert to client\" button on each lead. It must call\n   requests_convert_to_client with the request_id. Show whether the client was\n   created or already existed (the \"created\" field). Converting can start the\n   workspace's own workflows, which may message the person, so ask me to\n   confirm before the button does anything.\n3. Client list: call clients_search and split the results into two tabs using\n   each client's lifecycle_stage, which is either \"prospect\" or \"client\".\n   Add a search box that passes the text as \"query\".\n4. Client page: show the client's details from clients_get, their proposals\n   from proposals_search, and their invoices from invoices_search, filtered\n   to that client with the clientId argument.\n\nRules: server code only for tool calls, token from the environment, and show\nthe reason when a result has isError set. Read each tool's input schema from\ntools\u002Flist before using it.\n",[66],{"type":17,"tag":39,"props":67,"children":68},{"__ignoreMap":7},[69],{"type":22,"value":64},{"type":17,"tag":48,"props":71,"children":73},{"id":72},"prompt-2-proposals-with-a-deposit",[74],{"type":22,"value":75},"Prompt 2: proposals with a deposit",{"type":17,"tag":18,"props":77,"children":78},{},[79],{"type":22,"value":80},"This builds a form that drafts a proposal. A person sends it from Workspace369.",{"type":17,"tag":60,"props":82,"children":85},{"className":83,"code":84,"language":22,"meta":7},[63],"Add a \"New proposal\" form to the client page using the workspace369 tools.\n\n1. Call proposals_get_defaults and show the workspace's current signature and\n   deposit settings.\n2. Let me pick catalog services with products_list, set quantities, and enter\n   a title.\n3. Create the proposal with proposals_create_draft using the client's id, the\n   title, and the line items. Use an idempotency_key so a double click does\n   not create two drafts.\n4. If I ask for a deposit or a signature, set it with proposals_update_draft.\n5. Show a link to the draft and the total. Do NOT call proposals_send. Tell me\n   the draft is ready to review and send from Workspace369.\n\nDeposits are collected by Stripe when the client accepts, so tell me if the\nworkspace has no Stripe account connected instead of guessing.\n",[86],{"type":17,"tag":39,"props":87,"children":88},{"__ignoreMap":7},[89],{"type":22,"value":84},{"type":17,"tag":18,"props":91,"children":92},{},[93,95,101],{"type":22,"value":94},"Sending is left to the person on purpose. Even if you let the agent call ",{"type":17,"tag":39,"props":96,"children":98},{"className":97},[],[99],{"type":22,"value":100},"proposals_send",{"type":22,"value":102},", it is held until the person approves it in the Workspace369 app.",{"type":17,"tag":48,"props":104,"children":106},{"id":105},"prompt-3-a-task-board",[107],{"type":22,"value":108},"Prompt 3: a task board",{"type":17,"tag":60,"props":110,"children":113},{"className":111,"code":112,"language":22,"meta":7},[63],"Build a simple task board page using the workspace369 tools.\n\n1. Call task_boards_list and let me choose a board. Use its ordered statuses\n   as the columns.\n2. Call tasks_search with that boardId. Group the tasks by status. Follow\n   nextCursor for more pages. Add filters for assignee_id and for overdue\n   work (an assignee with due_before set to now).\n3. A form to add a task with tasks_create. It needs a board id and a status\n   name that exists on that board.\n4. Moving a task to another column calls tasks_update with the task id, its board_id, and the new status.\n\nNever delete anything. The workspace369 tools cannot delete tasks.\n",[114],{"type":17,"tag":39,"props":115,"children":116},{"__ignoreMap":7},[117],{"type":22,"value":112},{"type":17,"tag":48,"props":119,"children":121},{"id":120},"an-agentsmd-or-claudemd-snippet",[122],{"type":22,"value":123},"An AGENTS.md or CLAUDE.md snippet",{"type":17,"tag":18,"props":125,"children":126},{},[127,129,135,137,143],{"type":22,"value":128},"Add this to the ",{"type":17,"tag":39,"props":130,"children":132},{"className":131},[],[133],{"type":22,"value":134},"AGENTS.md",{"type":22,"value":136}," file in your project, or to ",{"type":17,"tag":39,"props":138,"children":140},{"className":139},[],[141],{"type":22,"value":142},"CLAUDE.md",{"type":22,"value":144}," for Claude Code, so every session starts with the right rules.",{"type":17,"tag":60,"props":146,"children":151},{"className":147,"code":149,"language":150,"meta":7},[148],"language-markdown","## Workspace369\n\nThis project uses Workspace369 as the system of record for business data.\n\n- Use the `workspace369` MCP tools for clients, requests (leads), proposals,\n  contracts, invoices, payments, projects, tasks, and calendar events. Do not\n  create database tables or local models for these records.\n- Before using a tool, read its description and input schema from the tool\n  list. Do not guess argument names.\n- Call the tools from server code only. The access token comes from the\n  `WORKSPACE369_TOKEN` environment variable. Never put it in browser code,\n  logs, commits, or screenshots.\n- Prefer read tools while exploring. Search tools return pages; follow\n  `nextCursor` until it is empty.\n- Tools that send something to a person (invoices, proposals, contracts,\n  messages, workflows) are held until the user approves them in the\n  Workspace369 app. If a result has `held_for_approval`, stop, show the user\n  the `approval_url`, and do not call the tool again. Check the outcome with\n  `approvals_get`.\n- Create drafts instead of sending. Leave sending to the user.\n- The tools cannot delete records, edit existing workflows, or manage team\n  members. Do not try to work around that.\n- Stay under 120 calls per minute. On HTTP 429, wait for the `Retry-After`\n  header and retry.\n- If a result has `isError`, show the reason to the user. Do not retry the\n  same call unchanged.\n","markdown",[152],{"type":17,"tag":39,"props":153,"children":154},{"__ignoreMap":7},[155],{"type":22,"value":149},{"type":17,"tag":48,"props":157,"children":159},{"id":158},"check-the-result",[160],{"type":22,"value":161},"Check the result",{"type":17,"tag":163,"props":164,"children":165},"ol",{},[166,172,177,196],{"type":17,"tag":167,"props":168,"children":169},"li",{},[170],{"type":22,"value":171},"Start a new agent session in the project.",{"type":17,"tag":167,"props":173,"children":174},{},[175],{"type":22,"value":176},"Ask: \"What rules does this project set for Workspace369?\" The agent should summarize the snippet.",{"type":17,"tag":167,"props":178,"children":179},{},[180,182,188,190,195],{"type":22,"value":181},"Ask it to draft a proposal. It should call ",{"type":17,"tag":39,"props":183,"children":185},{"className":184},[],[186],{"type":22,"value":187},"proposals_create_draft",{"type":22,"value":189}," and not ",{"type":17,"tag":39,"props":191,"children":193},{"className":192},[],[194],{"type":22,"value":100},{"type":22,"value":32},{"type":17,"tag":167,"props":197,"children":198},{},[199,201,207,209,214],{"type":22,"value":200},"Open ",{"type":17,"tag":202,"props":203,"children":204},"strong",{},[205],{"type":22,"value":206},"AI Connections (MCP)",{"type":22,"value":208}," in Settings and confirm its calls appear in the ",{"type":17,"tag":202,"props":210,"children":211},{},[212],{"type":22,"value":213},"Activity Log",{"type":22,"value":32},{"title":7,"searchDepth":216,"depth":216,"links":217},2,[218,219,220,221,222],{"id":50,"depth":216,"text":53},{"id":72,"depth":216,"text":75},{"id":105,"depth":216,"text":108},{"id":120,"depth":216,"text":123},{"id":158,"depth":216,"text":161},"content:v:2026.3:build-with-ai:prompts-and-agents-md-for-coding-agents.md","content","v\u002F2026.3\u002Fbuild-with-ai\u002Fprompts-and-agents-md-for-coding-agents.md","v\u002F2026.3\u002Fbuild-with-ai\u002Fprompts-and-agents-md-for-coding-agents","md",1792310456194]