基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/carlos-algms/dotfiles --skill react命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Use when a `discussion_rNNN` URL anchor appears, when replying to a specific PR review comment from a bot or AI reviewer (CodeRabbit, cubic, Claude, Copilot) or a human reviewer, reading all reviews on a PR with their replies as a tree, or resolving review threads from the CLI. Also covers where AI reviewers put out-of-diff findings and the mandatory `@handle` tag when replying. Triggers on "reply to coderabbit", "reply to cubic", "reply to the bot", "answer the bot review", "address bot reviews", "answer AI review comments", "answer this review comment", "read all reviews on PR", "show review threads", "resolve this thread".
Execute and orchestrate multiple AI agent CLIs (agy, Codex, Cursor, Claude Code, Pi) for getting alternative opinions, comparing approaches, or leveraging different AI models' strengths. Use when the user explicitly mentions agent names like "ask agy", "ask cursor", "ask codex", "ask pi", "use composer", "use pi", "try grok", or when needing diverse perspectives on complex problems, alternative implementation approaches, or multi-agent collaboration.
Compose and create GitHub pull requests with `gh` using the target repository's title, template, base-branch, and draft conventions. Load on explicit user intent to open, create, draft, or compose a pull request.
| name | react |
| description | Writes React components and hooks using TypeScript. Use when creating or modifying React components, hooks, or JSX. |
import React from 'react' — import individuallyReact.* namespace (e.g., React.useState, React.ReactNode)// ✓ Good
import { useState, type ReactNode } from 'react';
export default function MyComponent() {
return <div>Hello</div>;
}
// ✗ Bad
import React from 'react';
function MyComponent(): JSX.Element { ... }
export default MyComponent;
useState generic only for unions/complex types (not for string, boolean,
number)useCallback for same-component functionsuseCallback acceptable for functions returned from custom hooks// ✓ Good
const [name, setName] = useState(''); // no generic needed
const [status, setStatus] = useState<'a' | 'b'>('a'); // union needs generic
useEffect(() => {
async function fetchData() {
const res = await fetch('/api');
}
void fetchData();
}, []);
displayName only for forwardRef components<> only for multiple siblings// ✓ forwardRef with displayName
const MyInput = forwardRef<HTMLInputElement, Props>((props, ref) => (
<input ref={ref} {...props} />
));
MyInput.displayName = 'MyInput';
// ✓ Fragment for siblings
return (
<>
<div>First</div>
<div>Second</div>
</>
);
// ✗ Unnecessary fragment
return (
<>
<div>Only child</div>
</>
);