hapi-cli-website copilot-instructions.md

hapi-cli-website copilot-instructions.md is an instructions file for GitHub Copilot from la-rebelion/hapi-cli-website. It costs 614 tokens per session, scanned A, original, MIT.

A set of project-specific instructions for writing TypeScript and React code, including rules for types, data, comments, and refactoring.

In plain words
What is it for?
Use it when adding, reviewing, or refactoring TypeScript and React code in the hapi-cli-website project.
Why use it?
It gives the coding agent consistent expectations for new and changed code, reducing style differences and accidental removal of useful notes.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/la-rebelion/hapi-cli-website/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/la-rebelion/hapi-cli-website

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hapi-cli-website copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/la-rebelion/hapi-cli-website/copilot-instructions.svg)](https://agentmods.dev/instructions/la-rebelion/hapi-cli-website/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/la-rebelion/hapi-cli-website/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/la-rebelion/hapi-cli-website/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 614 This file is loaded in full into every session.
When invoked 614 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00614 $0.00614
Opus 5 $0.00307 $0.00307
Sonnet 5 $0.00123 $0.00123
Haiku 4.5 $0.00061 $0.00061

Measured 3d ago against content hash 1eed2e0cdd09, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hapi-cli-website copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project coding standards for TypeScript and React

TypeScript Guidelines

  • Use TypeScript for all new code
  • Follow functional programming principles where possible
  • Use interfaces for data structures and type definitions
  • Prefer immutable data (const, readonly)
  • Use optional chaining (?.) and nullish coalescing (??) operators
  • Use strong typing for function parameters and return types
  • Use enums for fixed sets of values
  • Use unknown type for values that can be anything, and narrow down types as needed
  • Use Record<string, any> for objects with dynamic keys
  • Use any type sparingly, only when absolutely necessary
  • Use as const for literal types when you want to preserve the exact type
  • Use type for type aliases and interface for object shapes
  • Use type for union types and intersection types
  • I use hints in the code for me to understand the context, so please respect them
  • Use @note comments to explain complex logic or important details - these are important and you should not remove them unless they are no longer relevant - but let me know if you do
  • Use @todo comments for tasks that need to be completed later
  • Use @fixme comments for known issues that need to be addressed - if you see these, analyze the issue and provide a solution if possible
  • Use @example comments to provide usage examples for functions or classes
  • Use @deprecated comments for code that is no longer recommended for use
  • Use @see comments to link to related code or documentation

React Guidelines

  • Use functional components with hooks
  • Follow the React hooks rules (no conditional hooks)
  • Use React.FC type for components with children
  • Keep components small and focused - refactor if they grow too large, but let me know to confirm
  • Use CSS modules for component styling
  • Use useEffect for side effects and cleanup

Refactoring Guidelines

When you are asked to refactor code: Refactor the ProjectList component file requested, but keep its behavior and UX exactly the same.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 51 lines · 614 tokens per session scan A 1eed2e0cdd09

Subscribe to this mod's changes

hapi-cli-website copilot-instructions.md is an instructions file published in the GitHub repository la-rebelion/hapi-cli-website (1 stars, last pushed 9d ago), licensed MIT. It adds 614 tokens to every session, about $0.0031 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.