원클릭으로
add-auth
Adds Cognito authentication and route protection. Use when adding login, signup, authentication, or user management.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Adds Cognito authentication and route protection. Use when adding login, signup, authentication, or user management.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use to create or update the per-author Ghost style guide from all available signals — interview answers, reference docs, and the published corpus — and to fold a newly approved post into it. Triggers on "build my style guide", "update the style guide", "learn my voice from my posts", and is invoked by push-draft after a successful push.
Use to write the first full draft of a Ghost blog post locally, matching the author's style guide, then self-audit it against the anti-pattern checklist. Triggers on "draft a post about X", "write the first draft", "start a new blog post".
Use to revise an existing local Ghost draft section by section with the author, improving formatting, voice, and accuracy. Triggers on "revise this post", "let's go through it section by section", "tighten this draft".
Use when first connecting a project to a Ghost site for the ghost plugin, or whenever Ghost credentials are missing/unverified — onboards the Ghost Admin API key, enables the plugin at project level, and verifies the connection. Triggers on "set up ghost", "connect my ghost site", "ghost credentials", "the ghost mcp isn't working".
Use to push a finished local Ghost draft to the Ghost site as a draft (never published) — pull-guards against in-editor edits, uploads the feature image, creates or updates the post, verifies links, and feeds the approved post back into the style guide. Triggers on "push this to ghost", "send the draft to ghost", "publish to ghost as a draft".
Use to write a Ghost blog post end to end, walking the full plan→draft→revise→push flow in one guided pass. Triggers on "write a post about X end to end", "take this from idea to a ghost draft", "guide me through writing a post".
| name | add-auth |
| description | Adds Cognito authentication and route protection. Use when adding login, signup, authentication, or user management. |
You are adding Cognito authentication to protect API routes and manage user accounts.
Based on the migration plan, show the user:
Explain the auth flow before asking questions: "Here's how authentication will work in your app:
Ask the user:
Create infrastructure/lib/auth-stack.ts
Add Cognito Authorizer to API Gateway
api-stack.ts to:
Create React auth integration (if frontend exists)
cd frontend && npm install amazon-cognito-identity-jsfrontend/src/lib/auth.ts with:
signUp(email, password), confirmSignUp(email, code), signIn(email, password)signOut(), getSession(), getIdToken()VITE_COGNITO_USER_POOL_ID, VITE_COGNITO_CLIENT_IDfrontend/src/hooks/useAuth.ts — manages auth state, provides auth functions, checks session on mountfrontend/src/context/AuthContext.tsx — wraps app to provide auth statefrontend/src/components/:
SignInForm.tsx, SignUpForm.tsx, ConfirmSignUp.tsx, ProtectedRoute.tsxUpdate API client to include auth token:
Update frontend/src/lib/api.ts:
import { getIdToken } from './auth';
export async function apiFetch(path: string, options?: RequestInit) {
const token = await getIdToken();
const headers: Record<string, string> = {
'Content-Type': 'application/json',
...options?.headers as Record<string, string>,
};
if (token) {
headers['Authorization'] = `Bearer ${token}`;
}
const response = await fetch(`${API_BASE}${path}`, { ...options, headers });
if (!response.ok) throw new Error(`API error: ${response.status}`);
return response.json();
}
Update React Router to protect routes:
<Route path="/dashboard" element={
<ProtectedRoute>
<DashboardPage />
</ProtectedRoute>
} />
cd infrastructure && npx cdk synth to verify compilation.migration/plan.md to mark add-auth as completeno-reply@verificationemail.com.