Skip to content

LeoYeAI/agent-master-skills / skills/atomgit

atomgit

Verified

AtomGit/GitCode 仓库管理技能,提供用户、仓库、Issue、PR、文件、分支等 API 操作。AtomGit 和 GitCode 是同一平台的不同域名(atomgit.com / gitcode.com),共享相同的 API 后端。

FileKindSize
README.mdmarkdown17.9 KB
SKILL.mdskill md22.6 KB
_meta.jsonconfig447 B
config.example.jsonconfig312 B
mcp-server.jsscript17.6 KB
package.jsonmanifest402 B
test.jsscript1.7 KB
#!/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);
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 implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall