Exécutez n'importe quel Skill dans Manus
en un clic
en un clic
Exécutez n'importe quel Skill dans Manus en un clic
Commencer$pwd:
$ git log --oneline --stat
stars:0
forks:0
updated:2 mars 2026 à 18:43
SKILL.md
| type | skill |
| name | Refactoring |
| description | Safe code refactoring with step-by-step approach |
| skillSlug | refactoring |
| phases | ["E"] |
| generated | "2026-03-02T00:00:00.000Z" |
| status | filled |
| scaffoldVersion | 2.0.0 |
Activate this skill when improving code structure without changing external behavior. Use it for extracting utilities, reducing duplication, improving naming, or simplifying complex logic.
FranchiseRow → Franchise mapping. Extract to packages/shared.lib/api.ts in Next.js and SvelteKit are nearly identical. Extract shared logic.packages/shared may still be refactored since they serve both stacks.Before (duplicated in both backends):
const franchise = {
id: row.id,
name: row.name,
ownerName: row.owner_name,
email: row.email,
phone: row.phone,
address: row.address,
city: row.city,
state: row.state,
status: row.status,
createdAt: row.created_at,
updatedAt: row.updated_at,
};
After (shared utility):
// packages/shared/src/mappers.ts
export function mapRowToFranchise(row: FranchiseRow): Franchise {
return {
id: row.id,
name: row.name,
ownerName: row.owner_name,
email: row.email,
phone: row.phone,
address: row.address,
city: row.city,
state: row.state,
status: row.status as FranchiseStatus,
createdAt: row.created_at,
updatedAt: row.updated_at,
};
}
Design RESTful APIs following best practices
Systematic bug investigation and root cause analysis
Review code quality, patterns, and best practices
Generate commit messages following conventional commits with scope detection
Generate and update technical documentation
Break down features into implementable tasks