hyperliquid-insights-web
AGENTS.md1 starsChanged 7 months agoMITView on GitHub
This document describes the purpose and scope of lightweight agents (Cursor skills) for this repository and gives examples and expectations for their behavior. Example 1 — small feature addition: User: "Add a MarketCard component that displays market name, price, and 24h change following our ui/card pattern. Add a test under components/ and update components/index.tsx if needed." Assistant: "I will add components/MarketCard.tsx, a simple test at components/MarketCard.test.tsx, and wire it in. I will run prettier formatting and ensure tests pass locally;…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- building-componentsSkill
- vercel-composition-patternsSkill
The file
We split this agents.md into the rules it gives an agent
4 rules. About 1 is common, 1 is distinctive, and 2 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 19
Before making changes, run the following locally:
- Very specific: line 24
Prefer TypeScript (.ts, .tsx) changes.
- Very specific: line 28
Add a new UI component in components/ following existing patterns.
- Common: line 48
Do not introduce or commit secrets (API keys, tokens, .env values).
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
Agents for hyperliquid-insights-web
This document describes the purpose and scope of lightweight agents (Cursor skills) for this repository and gives examples and expectations for their behavior.
Purpose
- Help contributors automate routine tasks (fix lint/format, run tests, add small components, update docs).
- Provide a small, safe skill that has scoped access to the repository and follows simple rules.
Scope & Access
- Files the skill may read and update (by default):
app/**,components/**,lib/**,mock-data/**,types/**- Project meta files:
package.json,tsconfig.json,next.config.ts,README.md
- The skill should avoid touching secret/credential files and should never commit literal secrets.
Expectations / Workflow
- Before making changes, run the following locally:
npm run lint— verify lint passesnpm run format— apply formattingnpm test— run unit tests (vitest)
- For non-trivial changes, include or update tests and documentation.
- Prefer TypeScript (
.ts,.tsx) changes; do not add plain JavaScript files unless requested.
Example agent tasks
- Add a new UI component in
components/following existing patterns. - Fix a failing unit test and add a test that covers the regression.
- Improve a helper in
lib/, update types intypes/, and run format/tests.
Prompts / Examples
Example 1 — small feature addition:
User: "Add a MarketCard component that displays market name, price, and 24h change following our ui/card pattern. Add a test under components/ and update components/index.tsx if needed."
Assistant: "I will add components/MarketCard.tsx, a simple test at components/MarketCard.test.tsx, and wire it in. I will run prettier formatting and ensure tests pass locally; I will not commit if tests fail."
Example 2 — fix formatting & lint:
User: "Fix formatting and lint errors in lib/format.ts."
Assistant: "I will run prettier and eslint --fix for the repository, and report any remaining lint failures for manual review."
Safety notes
- Do not introduce or commit secrets (API keys, tokens, .env values). If a change requires secrets, document required env vars instead.
- For breaking or large changes, create a PR and include test coverage and a clear description.
Where skills and rules live
- Skills live in
.agents/skills/vercel-composition-patterns/ - Rules live in
.agents/skills/vercel-composition-patterns/rules/
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.

