📦 deps(thirdparty): update snapshots
This commit is contained in:
@@ -9,7 +9,7 @@ const PUBLIC_DIR = path.join(ROOT_DIR, 'public');
|
||||
const TEMPLATE_PATH = path.join(DIST_DIR, 'index.html');
|
||||
const SKILLS_PATH = path.join(PUBLIC_DIR, 'skills.json');
|
||||
|
||||
const HOME_CATALOG_COUNT_FALLBACK = 1527;
|
||||
const HOME_CATALOG_COUNT_FALLBACK = 1541;
|
||||
const PRERENDER_SOCIAL_IMAGE = 'social-card.svg';
|
||||
const SITE_NAME = 'Antigravity Awesome Skills';
|
||||
const REPOSITORY_URL = 'https://github.com/sickn33/antigravity-awesome-skills';
|
||||
@@ -18,7 +18,7 @@ const FAQ_ITEMS = [
|
||||
{
|
||||
question: 'What is Antigravity Awesome Skills?',
|
||||
answer:
|
||||
'Antigravity Awesome Skills is an installable GitHub library of 1,527+ reusable SKILL.md playbooks for AI coding assistants. It supports Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and related hosts through direct skill installs, specialized plugins, bundles, workflows, and a searchable catalog.',
|
||||
'Antigravity Awesome Skills is an installable GitHub library of 1,541+ reusable SKILL.md playbooks for AI coding assistants. It supports Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and related hosts through direct skill installs, specialized plugins, bundles, workflows, and a searchable catalog.',
|
||||
},
|
||||
{
|
||||
question: 'How do I install Antigravity Awesome Skills?',
|
||||
|
||||
@@ -260,7 +260,20 @@ export function assertIndexSocialMeta(htmlText) {
|
||||
assertMetaContent(htmlText, 'name', 'twitter:image:alt');
|
||||
}
|
||||
|
||||
export function assertIndexDiscoveryMeta(htmlText) {
|
||||
function readSkillCountLabel(distDir) {
|
||||
try {
|
||||
const skills = JSON.parse(readFile(path.join(distDir, 'skills.json')));
|
||||
if (Array.isArray(skills) && skills.length > 0) {
|
||||
return `${skills.length.toLocaleString('en-US')}+`;
|
||||
}
|
||||
} catch (_err) {
|
||||
// Fall back to the explicit baseline when a fixture omits generated skill data.
|
||||
}
|
||||
|
||||
return '1,541+';
|
||||
}
|
||||
|
||||
export function assertIndexDiscoveryMeta(htmlText, { expectedSkillCountLabel = '1,541+' } = {}) {
|
||||
const title = extractTitle(htmlText);
|
||||
const description = extractMetaContent(htmlText, 'name', 'description') || '';
|
||||
const ogTitle = extractMetaContent(htmlText, 'property', 'og:title') || '';
|
||||
@@ -276,7 +289,10 @@ export function assertIndexDiscoveryMeta(htmlText) {
|
||||
twitterDescription,
|
||||
].join(' ');
|
||||
|
||||
assert(combined.includes('1,527+'), 'Home SEO metadata must expose the current 1,527+ skill count.');
|
||||
assert(
|
||||
combined.includes(expectedSkillCountLabel),
|
||||
`Home SEO metadata must expose the current ${expectedSkillCountLabel} skill count.`,
|
||||
);
|
||||
assert(combined.includes('specialized plugins'), 'Home SEO metadata must mention specialized plugins.');
|
||||
assert(!combined.includes('prompt templates'), 'Home SEO metadata must not use stale prompt-template positioning.');
|
||||
assertJsonLdTypes(htmlText, ['CollectionPage', 'Organization', 'WebSite', 'SoftwareSourceCode', 'FAQPage']);
|
||||
@@ -340,11 +356,11 @@ export function assertRobots(robotsText) {
|
||||
assert(allowsAiSearchCrawlers, 'robots.txt must explicitly expose AI search crawler directives.');
|
||||
}
|
||||
|
||||
export function assertLlms(llmsText) {
|
||||
export function assertLlms(llmsText, { expectedSkillCountLabel = '1,541+' } = {}) {
|
||||
const text = String(llmsText ?? '');
|
||||
const requiredSnippets = [
|
||||
'# Antigravity Awesome Skills',
|
||||
'1,527+',
|
||||
expectedSkillCountLabel,
|
||||
'specialized plugins',
|
||||
'Claude Code',
|
||||
'Codex CLI',
|
||||
@@ -384,12 +400,13 @@ export function runVerification({
|
||||
}) {
|
||||
const sitemapReport = analyzeSitemap(readFile(sitemapPath), { minSkillUrls });
|
||||
const indexHtml = readFile(indexPath);
|
||||
const expectedSkillCountLabel = readSkillCountLabel(distDir);
|
||||
assertPrerenderedSkillRoutes(sitemapReport.skillUrls, distDir, sitemapReport.normalizedRootPath);
|
||||
assertPrerenderedPluginRoutes(sitemapReport.pluginUrls, distDir, sitemapReport.normalizedRootPath);
|
||||
assertIndexSocialMeta(indexHtml);
|
||||
assertIndexDiscoveryMeta(indexHtml);
|
||||
assertIndexDiscoveryMeta(indexHtml, { expectedSkillCountLabel });
|
||||
assertRobots(readFile(robotsPath));
|
||||
assertLlms(readFile(llmsPath));
|
||||
assertLlms(readFile(llmsPath), { expectedSkillCountLabel });
|
||||
assertManifest(readFile(manifestPath));
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ describe('seo assets verification helpers', () => {
|
||||
it('requires llms.txt discovery signals', () => {
|
||||
const llms = `
|
||||
# Antigravity Awesome Skills
|
||||
1,527+ agentic skills with specialized plugins for Claude Code and Codex CLI.
|
||||
1,541+ agentic skills with specialized plugins for Claude Code and Codex CLI.
|
||||
https://github.com/sickn33/antigravity-awesome-skills
|
||||
Canonical source of truth: the GitHub repository is the primary project URL.
|
||||
`;
|
||||
@@ -104,12 +104,12 @@ describe('seo assets verification helpers', () => {
|
||||
const html = `
|
||||
<html>
|
||||
<head>
|
||||
<title>Antigravity Awesome Skills | 1,527+ AI coding skills and plugins</title>
|
||||
<meta name="description" content="Explore 1,527+ installable agentic skills, specialized plugins, bundles, and workflows." />
|
||||
<meta property="og:title" content="Antigravity Awesome Skills | 1,527+ AI coding skills and plugins" />
|
||||
<meta property="og:description" content="Explore 1,527+ installable agentic skills, specialized plugins, bundles, and workflows." />
|
||||
<meta name="twitter:title" content="Antigravity Awesome Skills | 1,527+ AI coding skills and plugins" />
|
||||
<meta name="twitter:description" content="Explore 1,527+ installable agentic skills, specialized plugins, bundles, and workflows." />
|
||||
<title>Antigravity Awesome Skills | 1,541+ AI coding skills and plugins</title>
|
||||
<meta name="description" content="Explore 1,541+ installable agentic skills, specialized plugins, bundles, and workflows." />
|
||||
<meta property="og:title" content="Antigravity Awesome Skills | 1,541+ AI coding skills and plugins" />
|
||||
<meta property="og:description" content="Explore 1,541+ installable agentic skills, specialized plugins, bundles, and workflows." />
|
||||
<meta name="twitter:title" content="Antigravity Awesome Skills | 1,541+ AI coding skills and plugins" />
|
||||
<meta name="twitter:description" content="Explore 1,541+ installable agentic skills, specialized plugins, bundles, and workflows." />
|
||||
<script type="application/ld+json">
|
||||
[
|
||||
{"@context":"https://schema.org","@type":"CollectionPage","sameAs":"https://github.com/sickn33/antigravity-awesome-skills"},
|
||||
|
||||
Reference in New Issue
Block a user