agentleFS
CodeCaroSCodeCaroS/MythOs_Aegis/.agents/skills/ai-engineering-platform/SKILL.md

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

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
  1. Very specific:

    Use the shared Node service in scripts/platform/.

    line 23
  2. Very specific:

    Check GET /health, then use /v1/chat/completions with Authorization: Bearer <token> and X-Tenant-ID.

    line 40
  3. Distinctive:

    Use provider URLs only from environment configuration.

    line 43
  4. Distinctive:

    Keep regression datasets in JSON and compare separate baseline and candidate URLs.

    line 50
  5. Distinctive:

    Keep the model-regression template manual by default.

    line 51
  6. Very specific:

    Do not use pull_request_target for the documentation workflow: it would combine write credentials with untrusted pull-request code.

    line 56

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

NeedUse
Cheapest suitable model, route logs, savingsPOST /v1/chat/completions with model auto
Semantic response reuseThe same endpoint; pgvector lookup runs before routing
Baseline versus candidate qualitynode src/cli.mjs regress or assets/actions/model-regression/action.yml
Pipeline traces and root-cause timelinesrc/sdk.mjs, /api/traces, and /dashboard
Markdown updates from code diffsnode src/cli.mjs heal-docs or assets/actions/self-healing-docs/action.yml
Bounded policy improvementnode src/cli.mjs improve or assets/workflows/self-improvement.yml

Run the platform

  1. Copy scripts/platform/env.example to an untracked .env and configure three model identifiers, prices, an embedding model, and credentials.
  2. Trust the repository hook when prompted. On Harness SessionStart, .codex/hooks.json starts or reuses the Compose stack after configuration is complete. Manual fallback: from scripts/platform/, run docker compose up --build.
  3. Check GET /health, then use /v1/chat/completions with Authorization: Bearer <token> and X-Tenant-ID. PLATFORM_API_KEY is an explicit all-tenant admin token; prefer a matching PLATFORM_TENANT_KEYS entry for ordinary tenant traffic.
  4. Open /dashboard for 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, and prompts.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 config

For 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.