# Claude Code Adapter

Use this adapter when installing the TimeBack Ed-Fi 1EdTech skill into Claude Code.

## Install

```bash
export ED_FI_SKILL_PACK_URL="${ED_FI_SKILL_PACK_URL:-https://platform3-andymontgomery-9773s-projects.vercel.app/ed_fi/1edtech/skill_pack}"
export ED_FI_SKILL_DIR="${ED_FI_SKILL_DIR:-$HOME/.claude/skills/timeback-ed-fi-1edtech}"
mkdir -p "$ED_FI_SKILL_DIR/agents" "$ED_FI_SKILL_DIR/references" "$ED_FI_SKILL_DIR/bin"

curl -fsSLL "$ED_FI_SKILL_PACK_URL/pack/SKILL.md" -o "$ED_FI_SKILL_DIR/SKILL.md"
curl -fsSLL "$ED_FI_SKILL_PACK_URL/pack/agents/claude-code.md" -o "$ED_FI_SKILL_DIR/agents/claude-code.md"
curl -fsSLL "$ED_FI_SKILL_PACK_URL/pack/agents/codex-cli.md" -o "$ED_FI_SKILL_DIR/agents/codex-cli.md"
curl -fsSLL "$ED_FI_SKILL_PACK_URL/pack/agents/perplexity-computer.md" -o "$ED_FI_SKILL_DIR/agents/perplexity-computer.md"
curl -fsSLL "$ED_FI_SKILL_PACK_URL/pack/bin/proof-replay.sh" -o "$ED_FI_SKILL_DIR/bin/proof-replay.sh"
chmod +x "$ED_FI_SKILL_DIR/bin/proof-replay.sh"

for file in source-contract worked-example app-build-protocol auth-and-headers leak-check; do
  curl -fsSLL "$ED_FI_SKILL_PACK_URL/pack/references/$file.md" -o "$ED_FI_SKILL_DIR/references/$file.md"
done
```

## Operator Prompt

Use `$timeback-ed-fi-1edtech` to build against the Ed-Fi 1EdTech surface. Start by reading `SKILL.md`, then `references/worked-example.md` for runnable proof steps and `references/leak-check.md` before delivering output.

For demo work, let the skill mint `POST /dev/mint?tenantId=demo`. For real tenant work, provide `ED_FI_BASE_URL` and `ED_FI_TOKEN` as secrets and tell Claude Code not to print them.

## Acceptance Check

Run this after install:

```bash
"$ED_FI_SKILL_DIR/bin/proof-replay.sh"
```

The check passes only when the live API returns the documented root descriptor, attendance proof, grade proof, and conformance evidence. It does not read implementation source or copy Ed-Fi schema.
