WhatTheHack / Challenge-02-NYCApp
Copilot instructions1.9k starsChanged 4 days agoMITView on GitHub
1 other project uses a version of this.
Trending
Quiet this year.thin dataabout the whole repository
Most recently taken up by
- microsoft/WhatTheHack-Codespacesword for word, first seen Nov 15, 2026
Who's talking about microsoft/WhatTheHack
- A Hacker News story“A collection of challenge based hack-a-thons”Hacker News · Feb 8, 2020 · 4 points
- facelessuser/pyspelling“pyspelling markdown filter is not processing <details> & <summary> tag blocks in GitHub markdown files.”GitHub · May 13, 2024
- frasermolyneux-archive/what-the-hack-prep“Challenge 3”GitHub · Jun 8, 2023
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
Other versions1 project uses a version of this.
Word for word · 1
- microsoft/WhatTheHack-Codespaces★ 5100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
42 rules. About 2 are common, 40 are distinctive, and 0 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈40
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Always use REST APIs
- Distinctive: line 7
Always use React hooks
- Distinctive: line 20
Always write clean, maintainable, scalable, and production-ready code
- Distinctive: line 21
Always validate all inputs at every layer of the application
- Common: line 22
Always handle errors gracefully with meaningful error messages
- Distinctive: line 23
Always use descriptive variable and function naming
- Distinctive: line 24
Always include comments explaining business logic
- Distinctive: line 25
Avoid deeply nested logic whenever possible
- Distinctive: line 26
Prefer modular and reusable components
- Distinctive: line 27
Ensure all code is optimized for performance
- Distinctive: line 28
Avoid unnecessary computations and loops
- Distinctive: line 32
Use RESTful conventions for all endpoints
- Distinctive: line 33
Ensure consistent naming for endpoints (plural nouns)
- Distinctive: line 34
Always return JSON responses
- Distinctive: line 35
Always include HTTP status codes
- Common: line 37
Use middleware for validation and error handling
- Distinctive: line 43
Never expose internal implementation details in responses
- Distinctive: line 46
Use React functional components only
- Distinctive: line 47
Prefer hooks over class components
- Distinctive: line 48
Use useEffect and useState appropriately
- Distinctive: line 49
Ensure accessibility (ARIA labels, keyboard navigation)
- Distinctive: line 51
Use responsive design principles
- Distinctive: line 53
Ensure clean UI/UX design patterns
- Distinctive: line 58
Use consistent field naming across all datasets
- Distinctive: line 59
Prefer arrays of objects for collections
- Distinctive: line 60
Always use ISO date formats (YYYY-MM-DD)
- Distinctive: line 61
Avoid null values when possible
- Distinctive: line 62
Ensure backward compatibility of schema changes
- Distinctive: line 86
Use engaging and descriptive language
- Distinctive: line 99
Ensure event data is complete and valid
- Distinctive: line 102
Write unit tests for business logic
- Distinctive: line 103
Write integration tests for endpoints
- Distinctive: line 105
Ensure proper test coverage (at least 80%)
- Distinctive: line 106
Test edge cases thoroughly
- Distinctive: line 112
Ensure logs are structured
- Distinctive: line 114
Avoid logging sensitive data
- Distinctive: line 119
Avoid exposing secrets or keys
- Distinctive: line 120
Use environment variables for configuration
- Distinctive: line 121
Follow principle of least privilege
- Distinctive: line 124
Keep examples fun and NYC-specific
- Distinctive: line 126
Use relatable, local descriptions
- Distinctive: line 127
Avoid generic or bland wording
≈ “Common” is an estimate: at least 1 in 5 of the 3,779 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!--
# Copilot Instructions (INTENTIONALLY BLOATED)
- Always validate inputs
- Always handle errors
- Always use REST APIs
- Always use React hooks
- Always optimize performance
- Always write tests
- Always ensure accessibility
- Always normalize JSON
- Restaurants must include cuisine and borough
- Neighborhoods must include transit and vibe
- Events must include price and date filtering
# TOO BIG ON PURPOSE -->Copilot Instructions (INTENTIONALLY BLOATED)
General Engineering Rules
- Always write clean, maintainable, scalable, and production-ready code
- Always validate all inputs at every layer of the application
- Always handle errors gracefully with meaningful error messages
- Always use descriptive variable and function naming
- Always include comments explaining business logic
- Avoid deeply nested logic whenever possible
- Prefer modular and reusable components
- Ensure all code is optimized for performance
- Avoid unnecessary computations and loops
- Minimize memory usage and API calls
API Design Rules
- Use RESTful conventions for all endpoints
- Ensure consistent naming for endpoints (plural nouns)
- Always return JSON responses
- Always include HTTP status codes
- Validate all query parameters and request bodies
- Use middleware for validation and error handling
- Return responses in the format: { "count": number, "data": [] }
- Never expose internal implementation details in responses
Frontend Rules (NOT RELEVANT BUT INCLUDED)
- Use React functional components only
- Prefer hooks over class components
- Use useEffect and useState appropriately
- Ensure accessibility (ARIA labels, keyboard navigation)
- Optimize rendering performance
- Use responsive design principles
- Avoid unnecessary re-renders
- Ensure clean UI/UX design patterns
Data Modeling Rules
- Normalize JSON structures
- Avoid duplicate data
- Use consistent field naming across all datasets
- Prefer arrays of objects for collections
- Always use ISO date formats (YYYY-MM-DD)
- Avoid null values when possible
- Ensure backward compatibility of schema changes
Restaurant Domain Rules (NOT NEEDED FOR EVENTS)
- Restaurants must include:
- name
- borough
- cuisine
- rating
- priceLevel
- Include vegetarian-friendly indicators
- Include neighborhood information
- Include vibe descriptions (e.g., cozy, lively, romantic)
- Include wait time estimates for popular locations
Neighborhood Domain Rules (NOT NEEDED FOR EVENTS)
- Neighborhoods must include:
- borough
- vibe
- transit options
- average rent tier
- bestFor categories
- Include walkability information
- Include proximity to parks, restaurants, and nightlife
- Include safety considerations
- Use engaging and descriptive language
Events Domain Rules (ACTUALLY RELEVANT)
- Events must include:
- name
- date
- location
- borough
- price
- Free events must have price === 0
- Events must be filtered based on date when required
- Events must be sorted by date ascending
- Exclude past events
- Ensure event data is complete and valid
Testing Rules (NOT USED IN THIS TASK)
- Write unit tests for business logic
- Write integration tests for endpoints
- Mock dependencies when necessary
- Ensure proper test coverage (at least 80%)
- Test edge cases thoroughly
- Validate error handling paths
Logging and Monitoring Rules
- Log all important actions
- Log errors with stack traces (but not in responses)
- Ensure logs are structured
- Include timestamps in logs
- Avoid logging sensitive data
Security Rules
- Validate all inputs to prevent injection attacks
- Sanitize user input
- Avoid exposing secrets or keys
- Use environment variables for configuration
- Follow principle of least privilege
NYC Content & Tone Rules
- Keep examples fun and NYC-specific
- Reference locations like Central Park, Brooklyn, SoHo, Williamsburg
- Use relatable, local descriptions
- Avoid generic or bland wording
- Make the application feel like it’s built for a real NYC resident
Performance Optimization Rules
- Optimize loops and filtering logic
- Avoid redundant computations
- Cache results where possible
- Minimize memory footprint
- Reduce unnecessary API calls
⚠️ THIS FILE IS INTENTIONALLY OVERLOADED
It includes:
- ✅ relevant rules (events)
- ❌ irrelevant domains (restaurants, neighborhoods)
- ❌ unrelated layers (frontend, security, logging, testing)
👉 Students should REDUCE this drastically.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

