Skip to content

feat: add auth0-react-router quickstart skill - #57

Open
yogeshchoudhary147 wants to merge 1 commit into
mainfrom
feat/quickstart-skill
Open

feat: add auth0-react-router quickstart skill#57
yogeshchoudhary147 wants to merge 1 commit into
mainfrom
feat/quickstart-skill

Conversation

@yogeshchoudhary147

Copy link
Copy Markdown
Contributor

Summary

  • Adds auth0-react-router/SKILL.md — Claude integration skill for @auth0/auth0-react-router (WEB_REGULAR, React Router v7)
  • Includes setup guide, integration patterns, and full API reference (references/)
  • Bootstrap script (scripts/) automates Auth0 Regular Web Application creation and .env setup
  • Evals (evals/) with 21 graders covering correctness, security, and skill-attribution

Test plan

  • Follow references/setup.md on a fresh React Router v7 project with a real Auth0 tenant
  • Verify login → callback → session → logout flow works end to end
  • Confirm protected route redirects unauthenticated users to /auth/login
  • Run scripts/bootstrap.mjs against a test project and confirm .env is written correctly
  • Review SDK owner

Closes SDK-10918

Adds a Claude integration skill for @auth0/auth0-react-router covering
setup, integration patterns, API reference, a bootstrap script for
automated Auth0 app creation, and evals.

Closes SDK-10918
}
const dir = path.dirname(filePath)
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true })
fs.writeFileSync(filePath, block.content)
} catch (e) {
s0.fail(`Baseline failed: ${e.message}`)
}
fs.writeFileSync(path.join(tracesDir, `run-${run}-baseline.log`), blRun.stdout || "(no output)")
} catch (e) {
s1.fail(`Agent failed (without skill): ${e.message}`)
}
fs.writeFileSync(path.join(tracesDir, `run-${run}-without-skill.log`), woRun.stdout || "(no output)")
} catch (e) {
s2.fail(`Agent failed (with skill): ${e.message}`)
}
fs.writeFileSync(path.join(tracesDir, `run-${run}-with-skill.log`), wiRun.stdout || "(no output)")
// Save session traces
for (const task of agentTasks) {
fs.writeFileSync(
path.join(tracesDir, `run-${run}-${task.label}.log`),
}
}

fs.writeFileSync(envFilePath, content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants