career-ops-ui
Copilot instructions79 starsChanged 5 months agoMITView on GitHub
GitHub Copilot auto-loads this file when working in this repo. The full project-level instructions, hard rules, conventions, and SDD pipeline live in CLAUDE.md. Everything there applies to Copilot equally. This file is the bite-sized version for the chat sidebar. career-ops-ui is an Express + vanilla-JS SPA on top of the Fighter90/career-ops job-search pipeline. Single-tenant, loopback-by-default, no telemetry, no build step. When generating server code that fetches a URL, accepts a :name param, writes to a parent file, or calls an…
- Reads credentials
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- contributor-prSkill
- hermes-bridgeSkill
- parent-syncSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
When generating server code that fetches a URL, accepts a :name param, writes to a parent file, or calls an LLM endpoint, route through:
- Distinctive: line 55
Don't reinvent these helpers.
- Very specific: line 62
Forms: every input needs a <label htmlFor="…"> or aria-label.
- Very specific: line 67
Run npm test — the suite documents existing invariants.
- Very specific: line 68
Check the latest release REVIEW in docs/reviews/.
- Distinctive: line 69
Ask the user. Don't guess at security-sensitive code.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
GitHub Copilot — career-ops-ui
GitHub Copilot auto-loads this file when working in this repo. The full project-level instructions, hard rules, conventions, and SDD pipeline live in
CLAUDE.md. Everything there applies to Copilot equally. This file is the bite-sized version for the chat sidebar.
Snapshot
career-ops-ui is an Express + vanilla-JS SPA on top of the
Fighter90/career-ops job-search
pipeline. Single-tenant, loopback-by-default, no telemetry, no build
step.
- Server: Node ≥ 18, Express 4 + js-yaml + multer.
.mjsonly (ESM). ~130-LOC orchestrator + 15 route modules underserver/lib/routes/. - SPA: Vanilla JS, hash-router, no framework, no bundler. Files served as-is from
public/. - Tests:
node --test+ Playwright. Baseline at v1.69.0 = 1079 unit / 70 Playwright (smoke+full-cycle+forms+locale-sweep) + 20 smoke E2E + 23 comprehensive E2E. Don't reduce coverage. - i18n: 13 locales (
en,es,pt-BR,ko,ja,ru,zh-CN,zh-TW,fr,pl,uk,da,ar—aris RTL). Per-locale DICTs inpublic/js/lib/locales/i18n-dict.<lang>.js, merged by thei18n-dict.jsassembler (I18N-SPLIT v1.60.0); CI canary + the byte-for-bytetests/fixtures/i18n-dict.snapshot.jsonenforce every key exists in every locale. - Scanner sources: each job board is a self-registering adapter in
server/lib/sources/<slug>.mjs. Since v1.69.0 (P-14)registry.mjsauto-discovers them at boot via each file'sexport const metablock — drop a file in, no registry edit. (As of v1.136.0: 79 sources, 74 EN + 5 RU.) - Repost detector (v1.83.0):
server/lib/detect-reposts.mjs+server/lib/role-matcher.mjsclusterdata/scan-history.tsvrows re-listed under different URLs within a window; read-onlyGET /api/scan/reposts→ a 🔁 panel on#/scan. Not a source.
Hard rules (Copilot, don't break these)
- Never edit outside
web-ui/. Parent career-ops is read-only. - Never load real user data (
cv.md,data/applications.md,reports/) into chat context. - Never weaken security headers. CSP excludes
'unsafe-inline'; don't relaxframe-ancestors 'none'. - Never bypass
isValidJobUrl+safeGetfor any outbound HTTP from a user-supplied URL. - Never sanitize CV markdown outside
stripDangerousMarkdown. - Never commit
.envor any real secret. - Tests must be CI-isolated — no parent dependency, no live network, no port collision.
Code conventions
- ESM only.
.mjsfor server,.js(browser classic) for SPA. node:prefix for built-ins:node:fs,node:path,node:url.- No new runtime deps lightly. Current:
express,js-yaml,multer. Adding more needs a spec. - File size target: < 400 LOC. New routes go in
server/lib/routes/<topic>.mjsexportingregister<Topic>Routes(app). - REST norms:
GET /api/<resource>,POST /api/<resource>(create/append),PUT /api/<resource>(replace),DELETE /api/<resource>/:id. SSE usesGET /api/stream/<verb>. - Conventional commits:
feat,fix,refactor,docs,test,chore,perf,ci. Optional scope. Breaking change:feat!:.
Security envelope (v1.21+)
When generating server code that fetches a URL, accepts a :name param, writes to a parent file, or calls an LLM endpoint, route through:
| Surface | Helper | Module |
| URL validation | isValidJobUrl(s) | server/lib/security.mjs |
| Outbound GET | safeGet(url, opts) | server/lib/safe-fetch.mjs |
:name / :slug sanitization | sanitizePathName(s) | server/lib/security.mjs |
| CV markdown XSS strip | stripDangerousMarkdown(s) | server/lib/security.mjs (entity-aware in v1.22+) |
| LLM endpoint throttle | llmRateLimit middleware | server/lib/rate-limit.mjs |
| Concurrent-write mutex | withFileLock(path, fn) | server/lib/file-lock.mjs |
Don't reinvent these helpers; don't fork them; don't add a parallel implementation.
SPA conventions
- No inline event handlers (
onclick="...") — CSP rejects. UseUI.el('button', { onClick: fn }, '…'). - All markdown rendering →
UI.md(text)inpublic/js/api.js. Escapes first. - All i18n →
t('key', 'EN fallback')fromwindow.I18n. Missing-from-DICT keys fail CI. - Forms: every input needs a
<label htmlFor="…">oraria-label. Everyaria-describedby="X"must point at an existingid="X".
When in doubt
- Read
../docs/architecture/OVERVIEW.md. - Run
npm test— the suite documents existing invariants. - Check the latest release REVIEW in
docs/reviews/. - Ask the user. Don't guess at security-sensitive code.
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.

