Skip to content

AElfProject/aelf-skills

aelf-skills-hub

Verified

Discovery, download, and configuration hub for the entire aelf agent skill ecosystem. Use when the user wants to: (1) explore or list available aelf skills, (2) install/bootstrap aelf skills into Cursor, Claude Desktop, OpenClaw, Codex, or Claude Code, (3) route an aelf-related intent to the correct skill, (4) check health or audit installed skills, (5) onboard a new skill into the aelf ecosystem. Covers domains: Portkey CA wallet, Portkey EOA wallet, Awaken DEX, eForest NFT marketplace, AelfScan explorer, TomorrowDAO governance, aelf node interaction.

scripts/generate-catalog.ts

View on GitHub
import path from 'node:path';
import { buildCatalog, writeCatalogArtifacts } from './lib/catalog.ts';
import { maybePrintUpdateReminder } from './lib/update-check.ts';

interface CliOptions {
  workspacePath?: string;
  includeLocalPaths: boolean;
  outputPath?: string;
  syncReadme: boolean;
}

function parseArgValue(flag: string): string | undefined {
  const idx = process.argv.indexOf(flag);
  if (idx === -1) return undefined;
  return process.argv[idx + 1];
}

function hasFlag(flag: string): boolean {
  return process.argv.includes(flag);
}

function parseArgs(): CliOptions {
  return {
    workspacePath: parseArgValue('--workspace'),
    includeLocalPaths: hasFlag('--include-local-paths'),
    outputPath: parseArgValue('--output'),
    syncReadme: !hasFlag('--no-readme-sync'),
  };
}

async function main(): Promise<void> {
  try {
    await maybePrintUpdateReminder();

    const options = parseArgs();
    const rootDir = process.cwd();

    const catalog = buildCatalog({
      workspacePath: options.workspacePath,
      includeLocalPaths: options.includeLocalPaths,
    });

    writeCatalogArtifacts(catalog, {
      rootDir,
      outputPath: options.outputPath,
      syncReadme: options.syncReadme,
    });

    const finalOutputPath = options.outputPath
      ? path.resolve(rootDir, options.outputPath)
      : path.join(rootDir, 'skills-catalog.json');

    console.log(`[DONE] Generated catalog: ${finalOutputPath}`);
    console.log(`[INFO] Schema: ${catalog.schemaVersion}`);
    console.log(`[INFO] Skills: ${catalog.skills.length}`);
    console.log(`[INFO] Includes local paths: ${options.includeLocalPaths ? 'YES' : 'NO'}`);
    console.log(`[INFO] Readme sync: ${options.syncReadme ? 'YES' : 'NO'}`);

    if (catalog.warnings.length > 0) {
      console.log('[WARN] Non-blocking issues:');
      for (const warning of catalog.warnings) {
        console.log(`  - ${warning}`);
      }
    }
  } catch (error) {
    const message = error instanceof Error ? error.message : String(error);
    console.error(message.startsWith('[FAIL]') ? message : `[FAIL] ${message}`);
    process.exitCode = 1;
  }
}

void main();
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall