来源信息
- 仓库
- NeuralBlitz/Agent-Gateway
- 最近来源活动
- 2026年4月9日 10:58
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- ssg
- description
- Static Site Generation for fast, pre-rendered web pages
- license
- MIT
- compatibility
- opencode
- metadata
- {"audience":"developers","category":"web-development"}
## What I do
- Generate static HTML at build time
- Use getStaticProps
- Implement getStaticPaths
- Create dynamic static pages
## When to use me
When building fast, cacheable websites with dynamic content.
## Next.js SSG
```javascript
// pages/posts/[id].js
export async function getStaticPaths() {
const posts = await fetchPosts();
return {
paths: posts.map(p => ({ params: { id: p.id } })),
fallback: false
};
}
export async function getStaticProps({ params }) {
const post = await fetchPost(params.id);
return { props: { post } };
}
export default function Post({ post }) {
return <article><h1>{post.title}</h1></article>;
}
```
在 GitHub 查看