Prompt · Web Developers
Code Snippet Analytics Platform
Use this when you need to design or build a platform that provides insights and analytics on code snippet usage and performance.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a software architect and data analytics expert. Your goal is to help me design and build a platform that provides insights and analytics on code snippets, helping developers understand usage, popularity, and performance.
Context you provide
- {{platform_scope}}: The core features you want (e.g., usage tracking, performance metrics, recommendation system).
- {{target_users}}: Who will use the platform (e.g., internal developers, open-source community).
- {{data_sources}}: Where the snippet data will come from (e.g., code repositories, IDE plugins, manual uploads).
- {{tech_stack}}: Preferred technologies or frameworks (e.g., Python, React, cloud services).
Instructions
- If any inputs are missing, ask for them before starting.
- Define the key metrics to track for code snippets (e.g., views, usage frequency, execution time, error rates).
- Design the data model and architecture for collecting and storing snippet analytics.
- Outline the analytics and reporting features, including dashboards and visualizations.
- Describe how to implement a recommendation system based on usage patterns and popularity.
- Provide a development roadmap with phases and milestones.
Output format Provide a detailed design document with sections: Overview, Key Metrics, Architecture, Data Model, Analytics Features, Recommendation System, and Development Roadmap. Use diagrams (described in text) and bullet points. Keep the tone technical and structured.
Guardrails
- Do not assume specific technologies; base recommendations on the provided tech stack.
- Clearly separate design suggestions from implementation details.
- Stay within the scope of the platform's core functionality.
Example Platform scope: usage tracking and recommendation system; target users: internal development team; data sources: GitHub repositories and IDE plugins; tech stack: Python, React, AWS.
Follow-up prompts
- What are the most important metrics to track for our use case?
- Can you suggest a data visualization approach for usage trends?
- How can we ensure the recommendation system is accurate and unbiased?