aelf-skills-hub
VerifiedDiscovery, 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.9 KB |
| scripts/bootstrap.ts | script | 11.9 KB |
| scripts/check-readme-sync.ts | script | 1.4 KB |
| scripts/generate-catalog.ts | script | 2.1 KB |
| scripts/health-check.ts | script | 2.9 KB |
| scripts/lib/catalog.test.ts | script | 2.1 KB |
| scripts/lib/catalog.ts | script | 15.7 KB |
| scripts/lib/health.ts | script | 8.3 KB |
| scripts/lib/types.ts | script | 2.1 KB |
| scripts/lib/update-check.test.ts | script | 15.6 KB |
| scripts/lib/update-check.ts | script | 17.0 KB |
| scripts/lib/update-types.ts | script | 1.3 KB |
| scripts/lib/utils.ts | script | 4.9 KB |
| scripts/security-audit.ts | script | 3.2 KB |
| scripts/test-signer-chain.ts | script | 5.6 KB |
| scripts/type-debt-report.ts | script | 3.3 KB |
| scripts/update-check.ts | script | 1.1 KB |
scripts/security-audit.ts
View on GitHubimport path from 'node:path';
import { existsSync } from 'node:fs';
import type { SkillsCatalog } from './lib/types.ts';
import { readJsonFile } from './lib/utils.ts';
interface CliOptions {
catalogPath: string;
}
interface SecurityIssue {
skillId: string;
field: string;
command: string;
rule: string;
}
const RISK_PATTERNS: Array<{ name: string; regex: RegExp }> = [
{ name: 'curl/wget piped to shell', regex: /\b(curl|wget)\b[^\n|]*\|\s*(bash|sh|zsh|pwsh|powershell)\b/i },
{ name: 'explicit shell -c execution', regex: /\b(bash|sh|zsh|pwsh|powershell)\s+-c\b/i },
{ name: 'command substitution using $(...)', regex: /\$\([^\n)]*\)/ },
{ name: 'command substitution using backticks', regex: /`[^`]+`/ },
{ name: 'multi-command chain with semicolon', regex: /;\s*\S+/ },
];
function parseArgs(): CliOptions {
const args = process.argv.slice(2);
let catalogPath = path.resolve(process.cwd(), 'skills-catalog.json');
for (let i = 0; i < args.length; i += 1) {
const arg = args[i];
if (arg === '--catalog' && args[i + 1]) {
catalogPath = path.resolve(process.cwd(), args[i + 1]);
i += 1;
}
}
return { catalogPath };
}
function collectIssues(catalog: SkillsCatalog): SecurityIssue[] {
const issues: SecurityIssue[] = [];
for (const skill of catalog.skills) {
const commandEntries = Object.entries(skill.setupCommands || {});
for (const [field, command] of commandEntries) {
for (const pattern of RISK_PATTERNS) {
if (pattern.regex.test(command)) {
issues.push({
skillId: skill.id,
field,
command,
rule: pattern.name,
});
break;
}
}
}
const installEntries = Object.entries(skill.clientInstall || {})
.map(([field, config]) => [field, config?.installCommand] as const)
.filter(([, command]): command is string => typeof command === 'string' && command.length > 0);
for (const [field, command] of installEntries) {
for (const pattern of RISK_PATTERNS) {
if (pattern.regex.test(command)) {
issues.push({
skillId: skill.id,
field: `clientInstall.${field}.installCommand`,
command,
rule: pattern.name,
});
break;
}
}
}
}
return issues;
}
function main(): void {
try {
const options = parseArgs();
if (!existsSync(options.catalogPath)) {
throw new Error(`[FAIL] Catalog file not found: ${options.catalogPath}`);
}
const catalog = readJsonFile<SkillsCatalog>(options.catalogPath);
const issues = collectIssues(catalog);
if (issues.length === 0) {
console.log(`[OK] Security audit passed for ${catalog.skills.length} skill(s).`);
return;
}
console.error(`[FAIL] Security audit found ${issues.length} risky setup command(s):`);
for (const issue of issues) {
console.error(` - ${issue.skillId}.${issue.field}: ${issue.rule} -> ${issue.command}`);
}
process.exitCode = 1;
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
console.error(message.startsWith('[FAIL]') ? message : `[FAIL] ${message}`);
process.exitCode = 1;
}
}
main();
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |