sec-opendata-th: Instructions file for GitHub Copilot

.github/copilot-instructions.md

sec-opendata-th copilot-instructions.md is an instructions file for GitHub Copilot from nutdnuy/sec-opendata-th. It costs 474 tokens per session, scanned A, original, MIT.

A project instruction guide for sec-opendata-th, a Python client and command-line tool for Thailand’s SEC public financial-data service. It describes endpoint coverage, credentials, pagination, name search, and testing rules.

In plain words
What is it for?
Use it when adding or testing API requests, CLI commands, cursor-based pagination, fund or company name searches, or configuration changes.
Why use it?
It prevents accidental narrowing of the client, hard-coded subscription keys, and missed behavior when working with versioned APIs.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is nutdnuy/sec-opendata-th's own configuration. It tells GitHub Copilot how to work on sec-opendata-th itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sec-opendata-th configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nutdnuy/sec-opendata-th. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nutdnuy/sec-opendata-th/master/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/nutdnuy/sec-opendata-th

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 sec-opendata-th copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nutdnuy/sec-opendata-th/copilot-instructions/github.svg)](https://agentmods.dev/instructions/nutdnuy/sec-opendata-th/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/nutdnuy/sec-opendata-th/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/nutdnuy/sec-opendata-th/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sec-opendata-th copilot-instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nutdnuy/sec-opendata-th/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/nutdnuy/sec-opendata-th/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 474 This file is loaded in full into every session.
When invoked 474 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00474 $0.00474
Opus 5.5 $0.00190 $0.00190
Sonnet 5.5 $0.00095 $0.00095
Haiku 4.5 $0.00047 $0.00047

Measured today against content hash 4267a3e0f6fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sec-opendata-th 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 today.

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 · 40 lines

What it actually says

GitHub Copilot Instructions

This repo implements sec-opendata-th, a Python client/CLI plus agent plugin for SEC Open Data Thailand.

Intent

Support every SEC Open Data portal category through generic /v1 requests: digital assets, funds, Licence Check, One Report, provident funds, debt, equity, ESG, capital-market operators/professionals, investors, and future categories. Also support v2 cursor-paginated endpoints, especially /v2/fund/... and /v2/bond/....

Development Rules

  • Keep generic endpoint coverage centered on SECClient.request() and the secopendata request CLI command.
  • Do not narrow behavior back to only FundFactsheet or FundDailyInfo.
  • Never hard-code or commit SEC subscription keys.
  • Follow skills/sec-onboarding/SKILL.md for /onBording or missing keys. The user enters secrets in their terminal; inspect only redacted onboarding --status metadata and reuse configured credentials.
  • Key scopes map to environment variables such as SEC_ONE_REPORT_KEY and SEC_DIGITAL_ASSET_KEY, SEC_FUND_KEY, SEC_BOND_KEY, and SEC_PVD_KEY.
  • Add tests for request path inference, GET/POST behavior, and CLI changes.
  • Use --cursor-paginate for v2 endpoints returning next_cursor and items.
  • Prefer .venv/bin/python -m pytest -q for verification.
  • Resolve fund/AMC names with the bundled offline amc-search and fund-search commands before making a live request.

Useful Commands

.venv/bin/python -m pytest -q
.venv/bin/python -m secopendata categories
.venv/bin/python -m secopendata fund-search "K-CHANGE" --status Registered
.venv/bin/python -m secopendata request --method GET --path /v1/one-report/fs/2021/financial_statement/C0000000013
.venv/bin/python -m secopendata request --method GET --path /v2/fund/factsheet/performance --cursor-paginate
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. today Changed · +3 lines · +49 tokens per session 4267a3e0f6fc
  2. 2mo ago First seen · 37 lines · 425 tokens per session scan A 6cc22fd2f5da

Subscribe to this mod's changes

sec-opendata-th copilot-instructions.md is an instructions file published in the GitHub repository nutdnuy/sec-opendata-th (8 stars, last pushed today), licensed MIT. It adds 474 tokens to every session, about $0.0019 per session on Opus 5.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.

Related

sec-opendata-th copilot-instructions.md compared with instructions from other repositories

sec-opendata-th copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sec-opendata-th copilot-instructions.mdnutdnuy/sec-opendata-thInstructions file8todayMITA474GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode