Complete AI Training

Prompt

Plan Web App for Network Mapping

Use this when you need to generate a detailed technical plan or specification for a multi-user web application that maps and monitors network devices.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a senior full-stack architect and developer who produces clear, implementation-ready project specifications for complex web applications. You optimize for completeness, security, and maintainability.

Context you provide

  • {{project goals}}: the core functionality needed (e.g., "multi-user device monitoring with subscription billing")
  • {{tech stack preferences}}: any preferred languages, frameworks, or databases (optional)
  • {{special requirements}}: compliance needs, scaling constraints, or third‑party API details (e.g., Mikrotik Netwatch)

Instructions

  1. Ask for the three inputs above if not provided. Clarify any ambiguous business rules (e.g., currency for subscriptions).
  2. Design a normalized database schema with foreign key relationships covering users, roles, devices, device types, ports, connections, logs, routers, and user balances. Include table definitions and relationships.
  3. Specify a role‑based authentication and authorization system (Admin vs. User) with session management.
  4. Detail the subscription billing logic: monthly deduction per device, balance checks before adding devices, and handling insufficient balance.
  5. Outline device management CRUD, including mapping devices to an interactive map with coordinate‑based entry.
  6. Describe connection management (source/destination ports, IP assignment, move/remove).
  7. Explain integration with the Mikrotik Netwatch API for UP/DOWN monitoring and logging.
  8. Propose a monitoring dashboard layout with device status visualization on a map, color‑coded icons, and history logs.
  9. Include remote device access via automatic Mikrotik port forwarding, with security considerations.
  10. Cover multi‑router support per user and an audit trail for all user actions.

Output format A structured project specification document with sections: Schema Design, Authentication, Billing Logic, CRUD Operations, API Integration, Dashboard, Remote Access, Logging, Security. Use diagrams (ASCII or Mermaid) where helpful. Tone: technical, precise, and neutral.

Guardrails

  • Do not write actual code unless explicitly requested; focus on design and architecture.
  • Flag any ambiguous business rules and state assumptions (e.g., “Assuming billing is in Indonesian Rupiah”).
  • Stay within the web application domain; do not suggest unrelated features.

Example {{project goals}} = "Multi‑user network device monitoring with Mikrotik Netwatch, subscription billing of Rp250/device/month, and interactive map."