multi-game-codes-hub
Skill321 starsChanged 7 months agoMITView on GitHub
Generate a Next.js Roblox codes page from validated JSON using a reusable TSX template. Use when creating or regenerating a single game's active/expired codes page with metadata, copy controls, optional supplied redemption/FAQ content, and breadcrumb schema.
In this repository32 other files it gives its agents.
- auto-page-syncSkill
- backlink-discoverySkill
- backlink-intelligenceSkill
- data-scraper-intentSkill
- favicon-icon-generatorSkill
- gemini-thinking-protocolSkill
- google-trends-to-pagesSkill
- html5-game-radarSkill
- itchio-new-game-huntSkill
- keyword-competition-analysisSkill
- nextjs-seo-boosterSkill
- nextjs-seo-foundationsSkill
- null-axiom-twitterSkill
- plugin-architectSkill
- python-agent-engineSkill
- roblox-game-data-scraperSkill
- roblox-hit-evaluatorSkill
- roblox-homepage-ranking-auditorSkill
- roblox-site-architectSkill
- rpg-stat-catalystSkill
- seo-auditorSkill
- seo-autopilotSkill
- seo-backlink-submitterSkill
- seo-link-strategySkill
- signallayer-backlinks-clientSkill
- site-keyword-researchSkill
- x-demand-radarSkill
- youtube-content-genSkill
- youtube-game-keywordsSkill
- youtube-game-scoutSkill
- youtube-intelSkill
- youtube-transcribeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 121
Run the target Next.js project's typecheck, lint, and build.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Multi-Game Codes Hub
Generate one Next.js codes page from explicit game data. The included generator renders a TSX template; it does not discover, monitor, translate, or validate codes against Roblox.
Implemented resources
- resources/generate_code_page.py: validates JSON and renders a page.
- resources/templates/codes_page.tsx: Next.js page template for active/expired codes, metadata, breadcrumbs, and optional supplied redemption/FAQ content.
- resources/components/CopyButton.tsx: client-side copy control with a fallback.
- resources/components/CodeTable.tsx: optional reusable code table.
- resources/schemas/faq_schema.ts: FAQ, breadcrumb, and item-list schema helpers.
- USAGE.md: concise CLI reference.
The generated template imports @/components/CopyButton; copy the included component into that alias or change the import for the target project.
Input contract
{
"gameName": "Your Bizarre Adventure",
"gameSlug": "yba",
"baseUrl": "https://example.com",
"activeCodes": [
{
"code": "CODE123",
"reward": "50 Spins",
"expiryDate": "2026-04-30",
"conditions": "Optional"
}
],
"expiredCodes": [
{
"code": "OLDCODE",
"reward": "25 Spins"
}
],
"redemptionSteps": [
"Open the game's menu.",
"Enter a supplied code in the code field."
],
"faq": [
{
"question": "Where is the code field?",
"answer": "The supplied source says it is in the game menu."
}
]
}Required top-level fields:
gameName: non-empty string.gameSlug: lowercase letters/digits separated by single hyphens.baseUrl: absolute HTTP(S) site URL without credentials, query, or fragment. A trailing slash is normalized away.
Optional top-level fields:
activeCodesandexpiredCodes: arrays; each entry supports onlycode,reward,expiryDate, andconditions.codeandrewardare required non-empty strings.redemptionSteps: array of non-empty strings. The section is omitted when the array is absent or empty.faq: array of objects containing only non-emptyquestionandanswerstrings. The FAQ section and FAQ schema are omitted when absent or empty.
Unknown top-level, code-entry, or FAQ-entry fields are errors; the generator never silently ignores input.
baseUrl drives canonical and breadcrumb URLs. Never reuse an example domain for a real site.
Generate a page
From the Skill directory:
python3 resources/generate_code_page.py \
--input resources/examples/yba_codes.json \
--output /tmp/yba-codes-page.tsxThe default template is resolved relative to this Skill, so the command also works when the script is invoked from another current working directory. --input, --output, and an explicitly supplied --template retain normal CLI semantics: relative paths resolve from the caller's current directory and absolute paths remain absolute.
To use a custom template:
python3 resources/generate_code_page.py \
--input ./game.json \
--output ./page.tsx \
--template ./custom-codes-page.tsxGeneration uses the current UTC month, year, and date. It fails before writing output if the JSON is invalid, required values are missing, URLs are invalid, or any {{templateVariable}} remains unresolved.
Template variables
{{gameNameJson}}{{gameSlugJson}}{{baseUrlJson}}{{rewardsJson}}{{activeCodesData}}{{expiredCodesData}}{{redemptionStepsData}}{{faqItemsData}}{{generatedDateJson}}{{currentMonthJson}}{{currentYearJson}}{{redemptionSection}}{{faqSchemaDefinition}}{{faqSchemaScript}}{{faqSection}}
Verification
After generation:
- Confirm the output contains the target
baseUrland no unrelated domain. - Confirm no
{{...}}placeholder remains. - Copy or adapt the required component imports.
- Run the target Next.js project's typecheck, lint, and build.
- Review codes and any supplied redemption/FAQ content against a cited primary source; the generator does not verify factual accuracy.
Roadmap and boundaries
Discord/Twitter monitoring, automatic code validity checks, automatic expiry updates, multilingual generation, community submissions, and deployment automation are not implemented. Treat them as roadmap items only; do not invoke nonexistent scripts such as discord_code_monitor.py, code_validator.py, update_codes.py, or generate_multilingual.py.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

