Aminet index

From Tibsfox/gsd-skill-creator · View interactive version

Aminet index is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Manages Aminet INDEX infrastructure: fetch, parse, cache, and incremental update of ~84,000-entry package database. Use when managing INDEX data, checking freshness, or parsing .readme files.

How to use this skill

Skill file

Aminet Index

Purpose

Manages the complete lifecycle of the Aminet INDEX database: fetching INDEX.gz from mirrors, parsing ~84,000 package entries into structured data, caching results for offline use, checking freshness against 24-hour thresholds, and performing incremental updates via RECENT file diffing. Also handles .readme metadata extraction for individual package detail views.

Capabilities

Key Modules

| Module | Purpose |

|--------|---------|

| src/aminet/index-fetcher.ts | Fetches INDEX.gz from Aminet mirrors with gzip decompression |

| src/aminet/index-parser.ts | Parses INDEX entries into structured PackageEntry objects |

| src/aminet/readme-parser.ts | Extracts metadata from .readme files with header parsing |

| src/aminet/index-freshness.ts | Checks INDEX age against 24h threshold, triggers RECENT-based incremental merge |

Usage Examples

Fetch and parse the INDEX:

import { fetchIndex } from './index-fetcher.js';
import { parseIndex } from './index-parser.js';

const raw = await fetchIndex({ mirrorUrl: 'https://aminet.net' });
const entries = parseIndex(raw);
// entries: PackageEntry[] with ~84,000 items

Check freshness and update incrementally:

import { checkFreshness } from './index-freshness.js';

const result = await checkFreshness({ cacheDir: './cache', maxAgeMs: 86400000 });
if (!result.fresh) {
  // Fetch RECENT, merge new entries by fullPath
}

Parse a .readme file:

import { parseReadme } from './readme-parser.js';

const metadata = parseReadme(readmeText);
// metadata.short, metadata.author, metadata.uploader, metadata.type, etc.

Dependencies

Token Budget Rationale

1.5% budget reflects the 4 modules covering INDEX fetch, parse, freshness, and readme extraction. The ~84,000-entry parsing logic with ISO-8859-1 handling, size suffix normalization, and incremental merge via RECENT requires comprehensive context for correct operation and troubleshooting.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.