LeoYeAI/agent-master-skills / skills/atomgit
atomgit
VerifiedAtomGit/GitCode 仓库管理技能,提供用户、仓库、Issue、PR、文件、分支等 API 操作。AtomGit 和 GitCode 是同一平台的不同域名(atomgit.com / gitcode.com),共享相同的 API 后端。
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 17.9 KB |
| SKILL.md | skill md | 22.6 KB |
| _meta.json | config | 447 B |
| config.example.json | config | 312 B |
| mcp-server.js | script | 17.6 KB |
| package.json | manifest | 402 B |
| test.js | script | 1.7 KB |
test.js
View on GitHub#!/usr/bin/env node
/**
* AtomGit MCP Server 测试脚本
*
* 使用方法:
* ATOMGIT_TOKEN=your-token node test.js
*/
const { exec } = require('child_process');
const path = require('path');
const MCP_SERVER = path.join(__dirname, 'mcp-server.js');
// 测试用例
const tests = [
{
name: 'getCurrentUser',
request: { jsonrpc: '2.0', id: 1, method: 'tools/call', params: { name: 'getCurrentUser', arguments: {} } }
},
{
name: 'listRepos',
request: { jsonrpc: '2.0', id: 2, method: 'tools/call', params: { name: 'listRepos', arguments: { perPage: 5 } } }
}
];
async function runTest(test) {
return new Promise((resolve, reject) => {
console.log(`\n🧪 Testing: ${test.name}`);
const proc = exec(`node ${MCP_SERVER}`, (error, stdout, stderr) => {
if (error) {
reject(error);
return;
}
console.log('Response:', stdout);
resolve(stdout);
});
// 发送请求
setTimeout(() => {
proc.stdin.write(JSON.stringify(test.request) + '\n');
setTimeout(() => {
proc.kill();
}, 1000);
}, 500);
});
}
async function main() {
console.log('🚀 AtomGit MCP Server Test Suite\n');
if (!process.env.ATOMGIT_TOKEN) {
console.error('❌ ERROR: ATOMGIT_TOKEN environment variable is not set');
console.error('Please run: export ATOMGIT_TOKEN=your-token');
process.exit(1);
}
console.log('✅ Token is set\n');
for (const test of tests) {
try {
await runTest(test);
console.log(`✅ ${test.name} passed`);
} catch (error) {
console.error(`❌ ${test.name} failed:`, error.message);
}
}
console.log('\n🎉 Test suite completed');
}
main().catch(console.error);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |