specstory-project-stats by 4444j99/a-i--skills
npx skills add https://github.com/4444j99/a-i--skills --skill specstory-project-stats从 SpecStory 云平台获取项目统计数据,显示贡献者数量、会话活动情况和其他项目指标。
.specstory/.project.json、git remote 或文件夹名称| 用户输入 | 操作 |
|---|---|
/specstory-project-stats | 获取当前项目的统计数据 |
/specstory-project-stats | 同上(无需参数) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 获取当前项目的统计数据
node skills/specstory-project-stats/scripts/get-stats.js
# 使用自定义 API 端点(用于开发)
SPECSTORY_API_URL=http://localhost:5173 node skills/specstory-project-stats/scripts/get-stats.js
脚本输出包含项目统计数据的 JSON:
{
"project_id": "specstoryai/agent-skills",
"sessions": {
"total": 156,
"last_30_days": 47,
"last_7_days": 12
},
"contributors": {
"total": 5,
"active_last_30_days": 3
},
"activity": {
"first_session": "2025-10-15",
"last_session": "2026-01-28",
"avg_sessions_per_week": 8.2
}
}
脚本按以下顺序确定项目 ID:
.specstory/.project.json - 使用 git_id 或 workspace_id 字段origin remote URL 中提取仓库名称| 错误 | 含义 | 操作 |
|---|---|---|
| 404 | 未找到项目 | 项目需要先同步到 SpecStory Cloud |
| 401 | 未授权 | API 端点可能需要身份验证 |
| 网络错误 | 无法连接到 API | 检查网络连接 |
获取统计数据后,以友好的格式呈现:
以下是 **specstoryai/agent-skills** 的统计数据:
**会话**
- 总计:已捕获 156 个会话
- 过去 30 天:47 个会话
- 过去 7 天:12 个会话
**贡献者**
- 总计:5 位贡献者
- 近期活跃:3 位
**活动情况**
- 首次会话:2025 年 10 月 15 日
- 最近会话:2026 年 1 月 28 日
- 平均:每周约 8 个会话
您的项目一直在积极使用 AI 辅助编码!
此项目尚未存在于 SpecStory Cloud 上。
开始使用:
1. 确保已安装 SpecStory
2. 运行 `specstory sync` 将本地会话推送到云端
3. 再次尝试此命令
需要帮助?请查看文档:https://docs.specstory.com
| 变量 | 默认值 | 描述 |
|---|---|---|
SPECSTORY_API_URL | https://cloud.specstory.com | API 端点 |
每周安装数
1
代码仓库
GitHub 星标数
2
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Fetches project statistics from SpecStory's cloud platform, showing contributor counts, session activity, and other project metrics.
.specstory/.project.json, git remote, or folder name| User says | Action |
|---|---|
/specstory-project-stats | Fetch stats for current project |
/specstory-project-stats | Same as above (no arguments needed) |
# Fetch stats for current project
node skills/specstory-project-stats/scripts/get-stats.js
# With custom API endpoint (for development)
SPECSTORY_API_URL=http://localhost:5173 node skills/specstory-project-stats/scripts/get-stats.js
The script outputs JSON with project statistics:
{
"project_id": "specstoryai/agent-skills",
"sessions": {
"total": 156,
"last_30_days": 47,
"last_7_days": 12
},
"contributors": {
"total": 5,
"active_last_30_days": 3
},
"activity": {
"first_session": "2025-10-15",
"last_session": "2026-01-28",
"avg_sessions_per_week": 8.2
}
}
The script determines project ID in this order:
.specstory/.project.json - Uses git_id or workspace_id fieldorigin remote URL| Error | Meaning | Action |
|---|---|---|
| 404 | Project not found | Project needs to sync to SpecStory Cloud first |
| 401 | Unauthorized | API endpoint may require authentication |
| Network error | Can't reach API | Check internet connection |
After fetching stats, present them in a friendly format:
Here are the stats for **specstoryai/agent-skills**:
**Sessions**
- Total: 156 sessions captured
- Last 30 days: 47 sessions
- Last 7 days: 12 sessions
**Contributors**
- Total: 5 contributors
- Active recently: 3
**Activity**
- First session: October 15, 2025
- Most recent: January 28, 2026
- Average: ~8 sessions per week
Your project has been actively using AI-assisted coding!
This project doesn't exist on SpecStory Cloud yet.
To get started:
1. Make sure you have SpecStory installed
2. Run `specstory sync` to push your local sessions to the cloud
3. Try this command again
Need help? Check the docs at https://docs.specstory.com
| Variable | Default | Description |
|---|---|---|
SPECSTORY_API_URL | https://cloud.specstory.com | API endpoint |
Weekly Installs
1
Repository
GitHub Stars
2
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装