Skip to content
Prompt

MQTT-Explorer — Copilot Instructions

by thomasnordquist

AI Summary

1. Long-term memory: If you learn something during a session that would save time in future sessions, add it to 2. Paper knowledge must go: If something is no longer true, update or remove it immediately 3. Evaluate after every session: Consider whether the instructions need updates based on what yo

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "MQTT-Explorer — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/thomasnordquist/MQTT-Explorer

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

An all-round MQTT client that provides a structured topic overview

META-INSTRUCTIONS (IMMUTABLE)

• Long-term memory: If you learn something during a session that would save time in future sessions, add it to .github/copilot-instructions.md • Paper knowledge must go: If something is no longer true, update or remove it immediately • Evaluate after every session: Consider whether the instructions need updates based on what you learned • Concise and useful: All information must be actionable, current, and concise

Code Formatting and Linting

Before committing code, always run: • yarn lint:prettier:fix - Format all TypeScript files with Prettier • yarn lint:fix - Fix ESLint and Prettier issues Check code quality: • yarn lint - Check Prettier, ESLint, and spell checking • yarn lint:prettier - Check Prettier formatting only • yarn lint:eslint - Check ESLint only

Test Commands

Unit tests: • yarn test - All unit tests (app + backend) • yarn test:app - Frontend tests only • yarn test:backend - Backend tests only LLM integration tests: • Requires API key (OpenAI or Gemini) • Setup: Run ./scripts/setup-llm-env.sh to create .env.llm-tests from injected secrets • Usage: source .env.llm-tests && ./scripts/run-llm-tests.sh • Note: The .env.llm-tests file must be sourced to get the LLM access token before running tests • Tests make real API calls and cost ~$0.01-$0.05 per run • See app/src/services/spec/README.md for details Integration tests: • yarn test:ui - Browser tests (requires yarn build first) • yarn test:demo-video - UI recording (requires Xvfb, mosquitto, tmux, ffmpeg) • yarn test:mcp - Model Context Protocol tests • yarn test:all - All tests (unit + demo-video) • ./scripts/runBrowserTests.sh - Browser mode UI tests (requires mosquitto service) • ./scripts/uiTests.sh - Demo video tests with Electron (requires Xvfb, mosquitto) CI jobs: test, ui-tests, demo-video, test-browser, browser-ui-tests Important: • Browser UI tests require MQTT broker. In CI, GitHub Actions health checks ensure the mosquitto service is ready before tests run. • Demo video tests use the same test scenarios as browser tests - if browser tests pass, demo video tests should pass too (they use identical selectors in src/spec/scenarios/)

Debugging Demo Video / UI Tests

When demo video tests fail in CI but you need to debug locally: Prerequisites: `bash

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption1K+ stars on GitHub
4.0k ★ · Popular
DocsMissing or thin
Undocumented

GitHub Signals

Stars4.0k
Forks383
Issues381
Updated1mo ago
View on GitHub
CC-BY-4.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more