apitap copilot-instructions.md

apitap copilot-instructions.md is an instructions file for GitHub Copilot from n1byn1kt/apitap. It costs 663 tokens per session, scanned A, original, Apache-2.0.

Project instructions for ApiTap, a TypeScript tool that records browser network traffic and replays it as reusable skill files. They describe its build, test, capture, and replay paths.

In plain words
What is it for?
Use them when developing or testing ApiTap's browser capture, traffic filtering, skill generation, authentication, or browser-free replay features.
Why use it?
They explain which commands and browser setup are needed and clarify how captured traffic becomes replayable data.

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/n1byn1kt/apitap/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/n1byn1kt/apitap

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 apitap copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/n1byn1kt/apitap/copilot-instructions.svg)](https://agentmods.dev/instructions/n1byn1kt/apitap/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/n1byn1kt/apitap/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/n1byn1kt/apitap/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 663 This file is loaded in full into every session.
When invoked 663 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.00663 $0.00663
Opus 5 $0.00331 $0.00331
Sonnet 5 $0.00133 $0.00133
Haiku 4.5 $0.00066 $0.00066

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

Security

Grade A, and why

apitap 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 4d 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 · 32 lines

How it starts

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

Copilot Instructions for ApiTap

Build and test commands

  • Install deps: npm install
  • Full test suite: npm test (Node test runner via node --import tsx --test 'test/**/*.test.ts')
  • Single test file (example): node --import tsx --test test/capture/filter.test.ts
  • Type check: npm run typecheck
  • Lint: no dedicated lint script is configured in package.json
  • Build: npm run build
  • Run CLI from source: npx tsx src/cli.ts <command> [args]
  • Install Chromium for browser-required flows (capture / browse): npx playwright install chromium

High-level architecture

ApiTap has two primary execution paths that share skill-file artifacts:

  • Capture path (browser required): Playwright/CDP capture in src/capture/monitor.ts and src/capture/session.ts collects traffic, src/capture/filter.ts removes noise, then src/skill/generator.ts deduplicates by method + parameterizedPath and writes skill files through src/skill/store.ts to ~/.apitap/skills/<domain>.json.
  • Replay path (browser-free): src/replay/engine.ts loads a skill file, substitutes params, injects credentials from src/auth/manager.ts, applies SSRF/header protections from src/skill/ssrf.ts, then executes requests with stdlib fetch().

Supporting layers:

  • src/discovery/ runs framework detection, OpenAPI probing, and endpoint probes in parallel.
  • src/orchestration/browse.ts is the high-level pipeline (cache -> disk -> discover -> replay).
  • src/read/ provides peek/read text-mode extraction with site-specific decoders and generic fallback.
  • src/mcp.ts exposes MCP tools over the same core pipeline; external API responses are marked untrusted.

Key repository conventions

  • ESM + NodeNext rules are strict: use .js in TS imports (e.g. import { x } from './y.js').
  • CLI-first surface area: keep behavior exposed via src/cli.ts commands, and ensure machine-readable --json output remains consistent.
  • Website-fetch workflow priority: when data is needed from a site, prefer apitap show <domain>apitap replay <domain> <endpoint-id>; if no skill file exists, try apitap read <url> before browser-based capture/browse.
  • Skill files are central artifacts: endpoint metadata belongs in skill JSON, but auth secrets must never be stored there; auth stays in encrypted storage.
  • Security checks are part of normal flow: preserve SSRF validation, header filtering, DNS/redirect checks during import and replay paths.
  • Test layout mirrors source layout: add/update tests under test/ matching src/ paths; use Node's built-in node:test style.
  • Dependency discipline: replay path should prefer stdlib fetch; keep Playwright usage scoped to capture/auth browser flows.

Read the full file on GitHub · 32 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. 4d ago First seen · 32 lines · 663 tokens per session scan A 7b94fdd7467d

Subscribe to this mod's changes

apitap copilot-instructions.md is an instructions file published in the GitHub repository n1byn1kt/apitap (124 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 663 tokens to every session, about $0.0033 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-30.