skills/superpowers/SKILL.md
Core engineering workflow that activates on EVERY task. Enforces systematic plan-before-code methodology, multi-file refactoring safety, dependency-aware changes, pre-flight verification, and zero-placeholder quality standards. Use PROACTIVELY on all coding tasks.
npx skillsauth add RaheesAhmed/SajiCode superpowersInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
read_file → grep → glob → understand patterns → identify dependencies
package.json / requirements.txt for existing dependencieswrite_todosunknown over any, explicit return typesTODO, FIXME, PLACEHOLDER, HACK in your output1. List ALL files that will be affected
2. Check git status — are there uncommitted changes?
3. Identify the dependency order for changes
4. Plan rollback: what to revert if something breaks
1. Create new files first (no existing code depends on them)
2. Update shared modules (types, utils, constants)
3. Update consumers (components, routes, handlers)
4. Update entry points (index files, main files)
5. Remove deprecated code LAST
1. Find ALL references: grep for imports, usages, config references
2. Update ALL import paths in dependent files
3. Update barrel exports (index.ts files)
4. Update config files (tsconfig paths, webpack aliases)
5. Verify build passes after EVERY rename
// GOOD: Explicit types, error handling, validation
async function fetchUser(id: string): Promise<User> {
if (!id?.trim()) throw new Error("User ID required");
const response = await fetch(`/api/users/${encodeURIComponent(id)}`);
if (!response.ok) {
throw new HttpError(`User fetch failed: ${response.status}`, response.status);
}
return response.json() as Promise<User>;
}
// BAD: No types, no validation, no error handling
async function fetchUser(id) {
const res = await fetch(`/api/users/${id}`);
return res.json();
}
// Typed error classes over generic Error
class AppError extends Error {
constructor(message: string, public code: string, public statusCode: number) {
super(message);
this.name = "AppError";
}
}
// Async error boundary pattern
async function safeExecute<T>(fn: () => Promise<T>, fallback: T): Promise<T> {
try {
return await fn();
} catch (error) {
logger.error("Operation failed", { error: error instanceof Error ? error.message : String(error) });
return fallback;
}
}
| Type | Convention | Example |
|------|-----------|---------|
| Components | PascalCase | UserProfile.tsx |
| Utilities | camelCase | formatCurrency.ts |
| Constants | UPPER_SNAKE | MAX_RETRY_COUNT |
| Types | PascalCase | ApiResponse |
| Enums | PascalCase + UPPER members | enum Status { ACTIVE, INACTIVE } |
| Files | kebab-case or camelCase | user-service.ts |
| Directories | kebab-case | api-routes/ |
any type — use unknown and narrow with type guardsconsole.log for errors — use structured logger or throwURL API!important in CSS — fix the specificity insteadconst over let — never varMap/Set over plain objects for dynamic lookupsimport()AbortController for cancellable fetch requestsdevelopment
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
development
Deep web research and data extraction skill. Systematically research ANY topic by fetching URLs, reading documentation, crawling API docs, evaluating npm/pypi packages, comparing technologies, and synthesizing findings into actionable recommendations. Use when researching libraries, frameworks, APIs, solutions, or any topic requiring web investigation.
development
Design and implement comprehensive test suites. Covers unit testing, integration testing, E2E testing with Playwright, API testing, mocking strategies, test data factories, TDD workflow, snapshot testing, coverage targets, and CI integration. Use when writing tests, designing test architecture, or debugging test failures.
tools
Implement production styling systems with Tailwind CSS, vanilla CSS, or CSS-in-JS. Covers CSS architecture (BEM, utility-first, modules), design tokens, responsive patterns, animation systems, dark mode, container queries, print styles, and performance optimization. Use when implementing designs or building CSS architectures.