ai-engineering-platform
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
Build, run, test, or extend the Harness-native AI Engineering Platform: an OpenAI-compatible cost router, PostgreSQL/pgvector semantic cache, model-regression action, failure-forensics trace SDK and dashboard, and self-healing Markdown documentation action. Use for LLM routing, semantic caching, golden-dataset CI, AI pipeline tracing, cost and latency dashboards, or evidence-backed documentation updates.
- Reads credentials
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academixSkill
- agent-browserSkill
- apocalypseSkill
- aria-apg-reviewSkill
- context-budgetSkill
- crawler-readiness-auditSkill
- data-protection-gateSkill
- decision-criticality-gateSkill
- fact-checkerSkill
- find-skillsSkill
- focus-friendly-outputSkill
- frontend-designSkill
- grill-meSkill
- grill-with-docsSkill
- humanizerSkill
- improve-codebase-architectureSkill
- microsoft-foundrySkill
- output-templatesSkill
- pre-launch-security-gateSkill
- prompt-preflightSkill
- quick-recapSkill
- rag-retrieval-qualitySkill
- rest-api-best-practicesSkill
- rigorous-responseSkill
- security-checklistSkill
- shepherdSkill
- skill-optimizerSkill
- sql-query-correctnessSkill
- system-design-scaleSkill
- tddSkill
- ui-ux-color-contrastSkill
- ui-ux-component-qualitySkill
- ui-ux-design-systemsSkill
- ui-ux-dropdownsSkill
- ui-ux-form-validationSkill
- ui-ux-generationSkill
- ui-ux-loading-statesSkill
- ui-ux-mobile-cssSkill
- ui-ux-typographySkill
- ux-logic-loopSkill
- ux-pattern-reviewSkill
- vercel-react-best-practicesSkill
- visual-flow-storyboardSkill
- visual-pr-reviewSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Use the shared Node service in scripts/platform/.
- Very specific: line 40
Check GET /health, then use /v1/chat/completions with Authorization: Bearer <token> and X-Tenant-ID.
- Distinctive: line 43
Use provider URLs only from environment configuration.
- Distinctive: line 50
Keep regression datasets in JSON and compare separate baseline and candidate URLs.
- Distinctive: line 51
Keep the model-regression template manual by default.
- Very specific: line 56
Do not use pull_request_target for the documentation workflow: it would combine write credentials with untrusted pull-request code.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
AI Engineering Platform
Use the shared Node service in scripts/platform/; do not scaffold five separate stacks. Read configuration.md before starting the service or a GitHub Action.
Route the task
| Need | Use |
| Cheapest suitable model, route logs, savings | POST /v1/chat/completions with model auto |
| Semantic response reuse | The same endpoint; pgvector lookup runs before routing |
| Baseline versus candidate quality | node src/cli.mjs regress or assets/actions/model-regression/action.yml |
| Pipeline traces and root-cause timeline | src/sdk.mjs, /api/traces, and /dashboard |
| Markdown updates from code diffs | node src/cli.mjs heal-docs or assets/actions/self-healing-docs/action.yml |
| Bounded policy improvement | node src/cli.mjs improve or assets/workflows/self-improvement.yml |
Run the platform
- Copy
scripts/platform/env.exampleto an untracked.envand configure three model identifiers, prices, an embedding model, and credentials. - Trust the repository hook when prompted. On Harness
SessionStart,.codex/hooks.jsonstarts or reuses the Compose stack after configuration is complete. Manual fallback: fromscripts/platform/, rundocker compose up --build. - Check
GET /health, then use/v1/chat/completionswithAuthorization: Bearer <token>andX-Tenant-ID.PLATFORM_API_KEYis an explicit all-tenant admin token; prefer a matchingPLATFORM_TENANT_KEYSentry for ordinary tenant traffic. - Open
/dashboardfor routing, cache, cost, latency, and trace evidence.
Use provider URLs only from environment configuration. Never accept an upstream URL from an API request. Bind ordinary bearer tokens to tenant IDs, redact before persistence, and expose provider diagnostics only under explicit debug output.
The startup hook is idempotent. It reuses only a health endpoint identifying this platform, refuses an unrelated process on the configured port, skips cleanly when .env is incomplete, and never changes policy.
Run CI capabilities
- Copy the applicable template from
assets/workflows/into.github/workflows/only where this complete skill package remains at.agents/skills/ai-engineering-platform/; the workflow uses its local action and scripts. Otherwise copy the complete package, not the workflow alone. - Keep regression datasets in JSON and compare separate baseline and candidate URLs. A judge-score drop beyond the configured allowance fails the command after the Markdown report is written.
- Keep the model-regression template manual by default; select a repository-specific trigger only after the candidate endpoint lifecycle is known. Send sensitive golden cases only to an approved judge boundary.
- Let documentation automation touch only tracked Markdown candidates. Keep sources and uncertainty in the generated report, commit to the current feature branch, and create a draft pull request only.
- The self-improvement workflow may propose only
routing.simpleMaxScore,routing.mediumMaxScore,cache.threshold, andprompts.system. It sees training cases and redacted evidence, then evaluates the frozen proposal against a separate held-out file with quality, cost, and latency caps. - Rejected or incomplete candidates do not write
policy.json. Accepted candidates are pushed only to the automation branch and opened or refreshed as a draft pull request. Human merge is the activation boundary; never auto-merge or modify live configuration.
Do not use pull_request_target for the documentation workflow: it would combine write credentials with untrusted pull-request code.
Verify changes
From scripts/platform/ run:
npm test
node --check src/cli.mjs
docker compose configFor a configured optimizer, run npm run improve -- --training fixtures/self-improvement-training.json --heldout fixtures/self-improvement-heldout.json. The local default writes policy.candidate.json; only CI targets tracked policy.json, after held-out acceptance.
From the repository root run node scripts/skill-guard.mjs. A live provider call and PostgreSQL integration remain unverified unless credentials and Docker are available; report that boundary explicitly.
Shared output profile
Compose the execution profile from output-templates. Report the selected capability, mutation, exact checks, and any unverified provider, database, CI, or draft-PR state.
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.

