在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
$ git log --oneline --stat
stars:0
forks:0
updated:2026年3月2日 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