AgentSkillsCN

firefly-friends-config

修改Firefly友链配置。当需要编辑好友页面的栏目、好友链接卡片、排序权重,或在src/config/friendsConfig.ts中调整启用标志,同时在src/content/spec/friends.md中添加可选的页面文案时使用此功能。

SKILL.md
--- frontmatter
name: firefly-friends-config
description: "修改 Firefly 友链配置。Use when editing friends page columns, friend link cards, sorting weight, or enabled flags in src/config/friendsConfig.ts and optional page copy in src/content/spec/friends.md."

Firefly Friends Config

Overview

Maintain friend-link entries and ranking while keeping page layout consistent.

Workflow

  1. Read the current target file(s) before editing.
  2. Confirm the requested behavior and map it to existing keys.
  3. Apply the smallest possible change inside the declared scope.
  4. Keep existing style, object structure, and value types.
  5. Report changed keys and paths.

Edit Scope

  • src/config/friendsConfig.ts
  • src/content/spec/friends.md

Common Keys

  • friendsPageConfig.columns
  • friendsConfig[].title / imgurl / desc / siteurl / tags[] / weight / enabled
  • getEnabledFriends sorting behavior (enabled filter + weight desc)
  • friends page markdown content in src/content/spec/friends.md

Guardrails

  1. Do not modify files outside Edit Scope unless explicitly requested.
  2. Keep booleans, numbers, arrays, enums, and URLs in valid types.
  3. Preserve existing comments unless they conflict with the new behavior.
  4. Prefer minimal diffs that are easy to review.