Add usage logging
You learn which screens teammates actually use.
The number it moves
Weekly active teammates
Distinct people who used the tool in the last 7 days divided by people who should.
What your AI does
Find the router or page entry points and auth layer. Check whether page views and key actions are recorded with the user id. Propose a minimal event log (page_view, action) to the existing database or analytics tool, with no personal data beyond user id.
Done when
- Page views are recorded with the user id
- Key actions are recorded
- Nothing personal beyond the user id is stored
The prompt
Paste this into any AI coding tool, or run it in MightyMouse and your AI works on your own project.
Add usage logging (Internal tool) Find the router or page entry points and auth layer. Check whether page views and key actions are recorded with the user id. Propose a minimal event log (page_view, action) to the existing database or analytics tool, with no personal data beyond user id. Done when: - Page views are recorded with the user id - Key actions are recorded - Nothing personal beyond the user id is stored Read the code first. If it already does this well, change nothing and say so. Otherwise make the smallest change that makes every line above true. Work with what this project already uses. Do not add a paid tool or service unless I ask for one. Playbook: https://getmightymouse.com/playbooks/internal-add-usage-logging/ - published by MightyMouse. Source: Google Research, https://research.google/pubs/measuring-the-user-experience-on-a-large-scale-user-centered-metrics-for-web-applications/
The skill file
Save this as SKILL.md and Claude Code or Cursor can run the playbook any time you ask.
--- name: internal-add-usage-logging description: You learn which screens teammates actually use. Use on a internal tool project to improve "Weekly active teammates". --- # Add usage logging Find the router or page entry points and auth layer. Check whether page views and key actions are recorded with the user id. Propose a minimal event log (page_view, action) to the existing database or analytics tool, with no personal data beyond user id. ## Done when - [ ] Page views are recorded with the user id - [ ] Key actions are recorded - [ ] Nothing personal beyond the user id is stored ## How to run it Read the code first and tick every line that is already true. If all are true, change nothing and say so. Otherwise make the smallest change that makes the rest true, then report each line as done or not done. Work with what this project already uses. Do not add a paid tool or service unless I ask for one. Playbook: https://getmightymouse.com/playbooks/internal-add-usage-logging/ - published by MightyMouse. Source: Google Research, https://research.google/pubs/measuring-the-user-experience-on-a-large-scale-user-centered-metrics-for-web-applications/