"TradeCat public terminal skill: operate the bundled user-side TradeCat project, inspect public Google Sheets CSV snapshot caches, run CLI/TUI/export flows, validate installers, govern the Skill root vs scripts/project layout, and maintain the cache-first no-database contract."
Resources
7Install
npx skillscat add tukuaiai/tradecat Install via the SkillsCat registry.
SKILL.md
tradecat-public Skill
Use this skill when working on the bundled TradeCat public consumer project stored under scripts/project/.
When to Use This Skill
Trigger when any of these applies:
- The user asks to run, install, debug, validate, or modify TradeCat public terminal behavior.
- The task mentions TradeCat cache, dataset registry, Google Sheets CSV,
event_stream, CLI/TUI, installer, uninstall, or one-shot request script. - The task needs the project contracts for cache-first TUI, local JSON snapshots, structured
latest.*files, or zero-install public requests. - The task asks to reorganize, audit, or optimize the Skill wrapper, root files, references,
AGENTS.md, or thescripts/project/project boundary.
Not For / Boundaries
- Do not connect to or write TradeCat server PostgreSQL.
- Do not add SQLite, SQL query layers, database repair, vacuum, or server production-chain coupling.
- Do not commit credentials, Google keys, private
.envfiles, generated cache files, or local runtime files. - Keep the skill root clean: project source and project docs live in
scripts/project/; long-form skill references live inreferences/. - Do not add root
assets/orassets/examples/; project examples, if ever needed, belong underscripts/project/and must be documented.
Quick Reference
Project Location
cd scripts/projectValidate Skill And Project
bash scripts/verify.shValidate Project Only
cd scripts/project
bash scripts/verify.shRun CLI From Source
cd scripts/project
PYTHONPATH=src python3 -m tradecat_terminal --help
PYTHONPATH=src python3 -m tradecat_terminal status --jsonOne-shot Public Request
python3 scripts/project/scripts/request.py --datasets
python3 scripts/project/scripts/request.py event_stream --format jsonl --limit 5Inspect Cache Paths
cd scripts/project
PYTHONPATH=src python3 -m tradecat_terminal path event_stream --jsonAudit The Root Boundary
test ! -e assets
git ls-files | sort
bash scripts/project/scripts/guard_public_local_files.shSkill Quality Gate
bash scripts/validate-skill.sh --strictProject Layout
tradecat-public/
|-- README.md
|-- AGENTS.md # tracked root governance contract
|-- SKILL.md
|-- agents/
| `-- openai.yaml
|-- references/
| |-- index.md
| |-- architecture.md
| |-- cache-contract.md
| |-- linear-flows.md
| |-- tui-contract.md
| |-- quality-gate.md
| `-- install-uninstall.md
`-- scripts/
|-- verify.sh
|-- run-tradecat.sh
`-- project/
|-- AGENTS.md
|-- DEBUG.md
|-- DEBUG.archive.md
|-- pyproject.toml
|-- scripts/
|-- src/
`-- tests/References
references/index.md: navigation.references/architecture.md: project purpose, forbidden paths, and data flows.references/cache-contract.md: local JSON cache and structured latest file contract.references/linear-flows.md: public six-flow map for cache, TUI, one-shot request, install, uninstall, and export/config flows.references/tui-contract.md: TUI rendering, probing, and terminal compatibility rules.references/install-uninstall.md: installer, launcher, update, and uninstall constraints.references/quality-gate.md: pre-delivery checklist for Skill wrapper and bundled project changes.
Examples
Example 1: Validate The Bundled Project
- Input: "Run the TradeCat checks."
- Steps:
- Run
bash scripts/verify.shfrom the skill root. - If lint is needed, run
cd scripts/project && ruff check src tests.
- Run
- Expected output / acceptance: compileall and pytest pass; lint passes when dev dependencies are installed.
Example 2: Inspect Local Cache Paths
- Input: "Show me where event_stream cache files live."
- Steps:
- Run
bash scripts/run-tradecat.sh path event_stream --json. - Read
latest_json,latest_jsonl,latest_csv, andstream_events.
- Run
- Expected output / acceptance: paths point under
scripts/project/.tradecat/cacheunlessTRADECAT_CACHE_DIRoverrides them.
Example 3: Modify TUI Behavior
- Input: "Change the TUI probe interval behavior."
- Steps:
- Read
references/tui-contract.md. - Edit
scripts/project/src/tradecat_terminal/tui.py. - Add or adjust focused tests in
scripts/project/tests/test_cache_tui.py. - Run
bash scripts/verify.sh.
- Read
- Expected output / acceptance: cache-first startup, background probe, failure backoff, and plain fallback contracts remain intact.
Example 4: Optimize The Skill Wrapper
- Input: "Use auto-skill to optimize this skill and fill missing files."
- Steps:
- Read
SKILL.md,references/index.md, andreferences/quality-gate.md. - Keep root files limited to Skill/Git metadata, references, and thin scripts.
- Put project source, tests, installers, and project README under
scripts/project/. - Run the strict skill validator and
bash scripts/verify.sh.
- Read
- Expected output / acceptance:
SKILL.mdremains short and actionable, references are navigable, root remains clean, and project validation passes.
Maintenance
- Source project:
scripts/project/ - Validation:
bash scripts/verify.shfrom the Skill root; runbash scripts/validate-skill.sh --strictwhen only the Skill gate is needed. - Skill root should remain an operator entrypoint, not a second copy of the project.