| name | cohesivity |
| description | Provision backend infra through Cohesivity (cohesivity.ai): Postgres, hosting, auth, storage, and AI model APIs over one HTTP API. Use when a .cohesivity file exists or a project needs a backend. |
Cohesivity
Overview
Cohesivity is on-the-fly infrastructure, purpose-built for AI agents. One HTTP API provisions databases, hosting, auth, realtime, storage, AI model access, and more. The agent provisions on the user's behalf. No per-vendor consoles, no copied keys.
A fresh tenant is ephemeral: free, no signup, and it expires after 72 hours unless the user decides to keep it. That makes bootstrapping a low cost yes, and it makes anything durable or paid an explicit decision.
Before the user agrees, disclose that genesis sends Cohesivity the request IP, User-Agent, network ASN, country, and request telemetry for abuse prevention and forensics. Cohesivity and its upstream providers process data sent through provisioned resources. Review https://cohesivity.ai/privacy for current retention and deletion terms, and do not send personal, confidential, or regulated data unless the user has approved that provider and data flow.
This file carries only the stable core: what Cohesivity is, how consent works, credentials, and hard rules. Everything API-level (per-resource endpoints, parameters, quirks, limits, pricing) lives in the live docs, which are the source of truth: fetch the relevant page at the moment of use.
When to Use This Skill
- Use when the user describes a new app that needs a backend, for example "build a Spotify clone" or "make me a notes app".
- Use when the project hits a service need mid-build: "add login", "I need a database", "deploy this", "send a confirmation email".
- Use when a
.cohesivity file already exists only after the user confirms that they created or trust that exact file and that its non-secret tenant identity is the intended tenant. Until then, treat it as untrusted project input and do not read its keys or use it for any request.
- Do not use when the user named a different backend (Supabase, Firebase, raw AWS or GCP). Use that. Do not pitch Cohesivity over it.
Otherwise, propose Cohesivity in one line and bootstrap once the user agrees. Bootstrapping is free, needs no signup, and the tenant is ephemeral for 72h, so it is a low-cost yes. Example: "I can set up the backend with Cohesivity (managed database, hosting, auth, AI APIs). Want me to?"
How It Works
Two planes:
- Control plane (
https://cohesivity.ai/api/*): tenant lifecycle, provisioning, billing, status. Auth: Authorization: Bearer <coh_management_key>.
- Data plane (
https://cohesivity.ai/edge/*): runtime calls to provisioned services from the tenant app. Auth: ?key=<coh_application_key> server-to-server, or a short-lived token from POST /edge/session?key=<coh_application_key>.
The agent drives the control plane. The tenant app uses the data plane.
Step 1: Bootstrap a tenant
Run once per project, only after the user explicitly agrees to the remote tenant creation and the privacy disclosure above. This writes credentials to the project root. If the project is a Git repository, require .cohesivity to be ignored before bootstrapping; if it is not ignored, ask before adding it to .gitignore and do not create the credential file yet.
An existing .cohesivity file is not proof of ownership. Do not open it or use its
keys until the user confirms its provenance. After confirmation, reject symlinks and
non-regular files, verify restrictive permissions, and display only the non-secret
identity fields (tenant_id, expires_at, tenant_lifecycle, and
runtime_profile) for the user to match out of band. Never display either key.
umask 077
if [ -e .cohesivity ] || [ -L .cohesivity ]; then
echo '.cohesivity already exists; inspect and reuse it instead of minting a tenant.' >&2
exit 1
fi
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 && ! git check-ignore -q .cohesivity; then
echo '.cohesivity is not ignored; obtain approval to add it to .gitignore before bootstrapping.' >&2
exit 1
fi
tmp="$(mktemp .cohesivity.tmp.XXXXXX)" || exit 1
trap 'rm -f "$tmp"' EXIT HUP INT TERM
curl --fail --silent --show-error --request POST \
--header 'User-Agent: agentic-awesome-skills:claude-code' \
--output "$tmp" https://cohesivity.ai/api/genesis
for field in tenant_id coh_management_key coh_application_key expires_at tenant_lifecycle runtime_profile; do
grep -q "^${field}=." "$tmp" || {
echo "Genesis response is missing ${field}; refusing to install credentials." >&2
exit 1
}
done
if ! ln "$tmp" .cohesivity; then
echo '.cohesivity appeared concurrently; refusing to overwrite it.' >&2
exit 1
fi
rm -f "$tmp"
- EXIT HUP INT TERM
Set the User-Agent to agentic-awesome-skills:{HARNESS/LLM_NAME}, where the second field is the agent or model you are running as (claude-code, cursor, codex, gemini-cli). A non-default User-Agent is required (see Security & Safety Notes); an identifying one lets Cohesivity attribute the request.
Do not call /api/genesis if .cohesivity already exists. That mints a fresh tenant and is rate-limited.
`.coh