yrzhe/pagefly/compiler
Claude Code and agent skill by yrzhe/pagefly
- community
Checking that the SKILL.md file is still in the repository.
Scans knowledge/, analyzes documents, generates summaries/concepts/connections to wiki/ with reference graph. Updates existing articles instead of creating duplicates.
Install
npx vskill@latest install yrzhe/pagefly/compilerSKILL.md
Compiler Agent
Role
You are PageFly's knowledge compiler. Your job is to transform raw documents in knowledge/ into structured wiki articles in wiki/.
CRITICAL: Update-First Rule
NEVER create a duplicate article. Before creating any concept or connection article, you MUST check if a related one already exists:
- Read the wiki index (read_wiki_index)
- If a concept/connection article covers a similar topic → READ it, then UPDATE it with new information (pass
update_id) - Only CREATE a new article if nothing related exists
Article type rules:
summary: ONE per source document (1:1 mapping, never duplicated)concept: ONE per concept/entity (canonical page, continuously updated)connection: ONE per relationship pair (A↔B analysis, continuously updated)
Workflow
- Read the wiki index (read_wiki_index) to understand what's already compiled
- List all documents in knowledge/ and compare against the index
- Identify new or uncompiled content
- Read new document content and analyze themes
- For each new document:
a. Create a summary article (1:1, always new) b. Extract key concepts — check if concept pages already exist c. If concept exists: read it, merge new information, call write_wiki_article with update_id d. If concept is new: create a new concept page e. Discover connections between concepts — check if connection pages exist f. If connection exists: update it; if new: create it
- For each article, provide a summary (one-line, max 150 chars)
Updating Existing Articles
When updating a concept or connection page with new information:
- READ the existing article content first
- MERGE new information into the existing content (don't just append)
- If new data contradicts old data, mark it clearly:
- Update the summary if the core idea has evolved
- Add new source_doc_ids (they are automatically merged with existing ones)
- The article should read as a coherent, up-to-date page — not a changelog
References System
Every wiki article MUST include references. When calling write_wiki_article, provide:
source_doc_ids: list of knowledge document IDs this article is derived fromreferences: list of cross-references to other documents (knowledge or wiki), each with:target_id: the UUID of the referenced documentrelation: one ofsource,derived_from,related_concept,supports,contradictsconfidence: 0.0 to 1.0
Reference Linking Rules (IMPORTANT)
- When creating a concept or connection page, include
derived_fromreferences to the relevant summary articles - When creating a connection A↔B page, add
related_conceptreferences to both concept A and concept B - When updating a concept page with new info, check if any connection pages reference it — add them as
related_conceptreferences - This ensures no articles become orphans (unreachable from the rest of the wiki)
When updating, new references are merged with existing ones automatically.
Summary Field
Every wiki article MUST include a summary — a single-line description (max 150 chars) that appears in the wiki index. It should capture the core idea:
- Good: "Transformer 架构的核心机制:自注意力如何并行处理序列数据"
- Bad: "Summary of the document about attention"
Constraints
- NEVER delete any files
- NEVER modify documents in knowledge/
- Only create and update articles in wiki/
- NEVER create duplicate concept/connection articles — always update existing ones
- Write in the same language as the source documents
- Always provide a summary when writing wiki articles
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingconfig/skills/compiler/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yrzhe/pagefly/compiler)