$npx -y skills add sendaifun/solana-new --skill apply-grantPrepare an Agentic Engineering Grant application by gathering project data, git history, and context files, then presenting all fields needed to fill the Solana Earn grant form. Use when the user says "apply for grant", "agentic engineering grant", "apply-grant", "grant applicati
| 1 | ## Preamble (run first) |
| 2 | |
| 3 | ```bash |
| 4 | _TEL_TIER=$(cat ~/.superstack/config.json 2>/dev/null | grep -o '"telemetryTier": *"[^"]*"' | head -1 | sed 's/.*"telemetryTier": *"//;s/"$//' || echo "anonymous") |
| 5 | _TEL_TIER="${_TEL_TIER:-anonymous}" |
| 6 | _TEL_PROMPTED=$([ -f ~/.superstack/.telemetry-prompted ] && echo "yes" || echo "no") |
| 7 | _TEL_START=$(date +%s) |
| 8 | _SESSION_ID="$$-$(date +%s)" |
| 9 | mkdir -p ~/.superstack |
| 10 | echo "TELEMETRY: $_TEL_TIER" |
| 11 | echo "TEL_PROMPTED: $_TEL_PROMPTED" |
| 12 | if [ "$_TEL_TIER" != "off" ]; then |
| 13 | _TEL_EVENT='{"skill":"apply-grant","phase":"launch","event":"started","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"}' |
| 14 | echo "$_TEL_EVENT" >> ~/.superstack/telemetry.jsonl 2>/dev/null || true |
| 15 | _CONVEX_URL=$(cat ~/.superstack/config.json 2>/dev/null | grep -o '"convexUrl":"[^"]*"' | head -1 | cut -d'"' -f4 || echo "") |
| 16 | [ -n "$_CONVEX_URL" ] && curl -s -X POST "$_CONVEX_URL/api/mutation" -H "Content-Type: application/json" -d '{"path":"telemetry:track","args":{"skill":"apply-grant","phase":"launch","status":"success","version":"0.2.0","platform":"'$(uname -s)-$(uname -m)'","timestamp":'$(date +%s)000'}}' >/dev/null 2>&1 & |
| 17 | true |
| 18 | fi |
| 19 | ``` |
| 20 | |
| 21 | If `TEL_PROMPTED` is `no`: Before starting the skill workflow, ask the user about telemetry. |
| 22 | Use AskUserQuestion: |
| 23 | |
| 24 | > Help superstack get better! We track which skills get used and how long they take — |
| 25 | > no code, no file paths, no PII. Change anytime in `~/.superstack/config.json`. |
| 26 | |
| 27 | Options: |
| 28 | - A) Sure, help superstack improve (anonymous) |
| 29 | - B) No thanks |
| 30 | |
| 31 | If A: run this bash: |
| 32 | ```bash |
| 33 | echo '{"telemetryTier":"anonymous"}' > ~/.superstack/config.json |
| 34 | _TEL_TIER="anonymous" |
| 35 | touch ~/.superstack/.telemetry-prompted |
| 36 | ``` |
| 37 | |
| 38 | If B: run this bash: |
| 39 | ```bash |
| 40 | echo '{"telemetryTier":"off"}' > ~/.superstack/config.json |
| 41 | _TEL_TIER="off" |
| 42 | touch ~/.superstack/.telemetry-prompted |
| 43 | ``` |
| 44 | |
| 45 | This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely and proceed to the skill workflow. |
| 46 | |
| 47 | --- |
| 48 | |
| 49 | # Apply for Agentic Engineering Grant |
| 50 | |
| 51 | Gather everything the user needs to submit an **Agentic Engineering Grant Application** on Solana Earn. The grant is fixed at 200 USDG. Present the output organized by the form's 3 steps so the user can copy-paste into the form. |
| 52 | |
| 53 | ## Skill Router |
| 54 | |
| 55 | {{SKILL_ROUTER.md}} |
| 56 | |
| 57 | --- |
| 58 | |
| 59 | ## Grant Link |
| 60 | |
| 61 | **Submit here**: https://superteam.fun/earn/grants/agentic-engineering |
| 62 | |
| 63 | Always show this link to the user at the start and end of the skill. |
| 64 | |
| 65 | ## Workflow |
| 66 | |
| 67 | ### Phase 0 — Export session transcript |
| 68 | |
| 69 | Before anything else, **run the bundled export script** to copy the current AI session transcript to the project root: |
| 70 | |
| 71 | ```bash |
| 72 | bash ~/.claude/skills/apply-grant/export-session.sh . |
| 73 | ``` |
| 74 | |
| 75 | The script automatically: |
| 76 | - Finds the latest Claude Code session `.jsonl` from `~/.claude/projects/<project-slug>/` → copies as `./claude-session.jsonl` |
| 77 | - Finds the latest Codex session from `~/.codex/sessions/` → copies as `./codex-session.jsonl` |
| 78 | |
| 79 | After running, confirm to the user which file(s) were exported and where they are. These files are proof of AI-assisted development for the grant application. |
| 80 | |
| 81 | **Fallback**: If the script fails or no session is found, tell the user to manually export: |
| 82 | - **Claude Code**: Run `/export` in the chat — this saves a `.txt` transcript to the working directory. Attach that file instead. |
| 83 | - **Codex**: Session logs are in `~/.codex/sessions/` — find the latest `.jsonl` and copy it to the project root. |
| 84 | |
| 85 | ### Phase 1 — Collect project context |
| 86 | |
| 87 | 1. Look for `idea-context.md`, `build-context.md`, `README.md`, `package.json`, `Cargo.toml`, or `Anchor.toml` in the working directory. |
| 88 | 2. Read `git log --oneline -20` for recent work history. |
| 89 | 3. Read `git remote -v` to get the GitHub repo URL. |
| 90 | 4. Check for any prior phase handoff files in `skills/data/specs/`. |
| 91 | 5. Ask the user for any missing required fields (TG username, wallet address, X profile) that cannot be inferred. |
| 92 | |
| 93 | ### Phase 2 — Generate grant application draft |
| 94 | |
| 95 | Present the output as a **copy-paste-ready** draft organized by the 3 form steps: |
| 96 | |
| 97 | --- |
| 98 | |
| 99 | #### Step 1: Basics |
| 100 | |
| 101 | | Field | Required | What to fill | |
| 102 | |-------|----------|-------------| |
| 103 | | **Project Title** | Yes | Infer from package.json name, Anchor.toml, or README title. Ask if unclear. | |
| 104 | | **One Line Description** | Yes | Generate a concise one-liner from project context. | |
| 105 | | **TG username** | Yes | Ask the user. Format: `t.me/<username>` | |
| 106 | | **Wallet Address** | Yes | Ask the user for their Solana wallet address. | |
| 107 | |
| 108 | #### Step 2: Details |
| 109 | |
| 110 | | Field | Required | What to fill | |
| 111 | |-------|----------|-------------| |
| 112 | | **Project Details** |