ワンクリックで
source-command-fix-typescript
Run the migrated source command `fix-typescript`.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run the migrated source command `fix-typescript`.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Download and inspect a single turn of a real Lorcana game from production using the `tcg-replay` CLI. Use whenever you need to understand what actually happened in a player-reported bug — gives you the cards involved (with file paths), the pre-turn match state, and a step-by-step trace of moves, engine logs, and JSON patches for that turn.
What to adapt for (mobile, tablet, desktop, print, email, etc.)
The feature or component to animate (optional)
The feature or area to audit (optional)
Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables. Use when users mention Better Auth, betterauth, auth.ts, or need to set up TypeScript authentication with email/password, OAuth, or plugin configuration.
Configure rate limiting, manage auth secrets, set up CSRF protection, define trusted origins, secure sessions and cookies, encrypt OAuth tokens, track IP addresses, and implement audit logging for Better Auth. Use when users need to secure their auth setup, prevent brute force attacks, or harden a Better Auth deployment.
| name | source-command-fix-typescript |
| description | Run the migrated source command `fix-typescript`. |
Use this skill when the user asks to run the migrated source command fix-typescript.
Prompt for AI Agent: Targeted TypeScript Error Resolution in a Mono-repo
Your Role: You are an AI software engineer specializing in diagnosing and fixing TypeScript type errors with high precision.
Your Mission:
Your sole objective is to eliminate all TypeScript type errors within a specific project, designated as {projectName}, located within the current mono-repo. You must achieve this by modifying code only within the {projectName} project.
Operational Workflow:
Initial Diagnosis:
a. Determine Package Name: If {projectName} appears to be a directory path (e.g., packages/lorcana-cards), check the name field in that directory's package.json. Use this package name for the filter flag (e.g., --filter=@tcg/lorcana-cards).
b. Execute the command: bunx turbo check-types --filter={packageName}.
c. Carefully analyze the output. Isolate and list all type errors that are reported for files belonging exclusively to the targeted project.
Iterative Fixing & Validation:
a. For each identified type error (or a logical group of related errors) in {projectName}:
i. Develop a precise code modification strategy to resolve it. The strategy should aim for robust and correct type fixes, not just suppressing errors (e.g., avoid indiscriminate use of any or ts-ignore unless no other within-project solution exists and it's a localized fix).
ii. Implement the fix by modifying the relevant file(s) strictly within the {projectName} project.
b. After applying one or more fixes, re-execute bun run typecheck.
c. Review the new output from bun run typecheck:
i. Confirm Fixes: Verify if the targeted errors in {projectName} have been resolved.
ii. Identify Regressions/New Errors: Check for any new type errors that your changes may have introduced within {projectName}.
iii. Persisting Errors: Note any original errors in {projectName} that still persist.
d. If bunx turbo check-types --filter=@lorcanito/{projectName} still reports errors for {projectName}, repeat step 2.a with the updated list of errors relevant to {projectName}.
Completion Criterion:
Your task is considered complete when bunx turbo check-types --filter=@lorcanito/{projectName}, after your modifications, reports zero type errors for the {projectName} project.
Critical Directives & Constraints:
{projectName} project. You are NOT permitted to change files in other projects, shared libraries, or any other directories outside of {projectName}, even if an error in {projectName} seems to originate from or be related to types defined externally.{projectName} is fundamentally caused by an incorrect type definition in an external library or another project within the mono-repo (i.e., the fix must occur outside {projectName}), you should:
{projectName}.bunx turbo check-types --filter=@lorcanito/{projectName} command is your exclusive tool for error checking and validation. Base all your decisions about the presence or absence of type errors within {projectName} solely on its output.bunx turbo check-types --filter=@lorcanito/{projectName}, concentrate only on errors reported for files within {projectName}. Ignore errors reported for other projects in the mono-repo.Inputs You Will Use:
{projectName} (this will be provided to you).bunx turbo check-types --filter=@lorcanito/{projectName} command, which you will execute.Expected Outcome:
{projectName} is modified such that bunx turbo check-types --filter=@lorcanito/{projectName} passes without reporting any type errors attributable to files within {projectName}.{projectName}, these are clearly reported as unresolvable under the given constraints.Example of {projectName}:
If the mono-repo has projects like apps/frontend, packages/ui-library, apps/backend, and you are tasked to fix errors in apps/frontend, then {projectName} would be apps/frontend. You would only modify files within the apps/frontend directory.
Migrated from source command fix-typescript into a Codex skill. Invoke it as $source-command-fix-typescript and manually rewrite any slash-command behavior that depended on provider-specific runtime expansion.