-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add PaperKit Copilot skills for routing and defaults #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
peternicholls
wants to merge
3
commits into
master
Choose a base branch
from
codex/plan-improvements-for-/paperkit/-with-skills
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- | ||
| name: paperkit-defaults | ||
| description: Apply default PaperKit workflow settings like citation style, output folders, and document class. | ||
| --- | ||
|
|
||
| ## Defaults | ||
| Use these defaults unless the user specifies otherwise: | ||
|
|
||
| - Citation style: harvard | ||
| - Document class: article | ||
| - Target audience: academic | ||
| - Standards flexibility: pragmatic | ||
|
|
||
| ## Paths | ||
| Assume these default paths (relative to project root): | ||
|
|
||
| - Paper folder: .paper | ||
| - Output folder: .paperkit/data | ||
| - LaTeX folder: latex | ||
| - Planning folder: planning | ||
|
|
||
| ## Usage notes | ||
| If a request conflicts with these defaults, prioritize the user's instruction and call out the override. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- | ||
| name: paperkit-routing | ||
| description: Route PaperKit requests to the right agent module using the orchestrator tie-break rules. | ||
| --- | ||
|
|
||
| ## Purpose | ||
| Use this skill when a request needs routing to a single PaperKit agent. | ||
|
|
||
| ## Routing rules | ||
| Select exactly one agent and do not perform the task yourself. Use these tie-break rules: | ||
|
|
||
| - "peer reviewed / cited by / discredited / provenance / credibility" -> librarian | ||
| - "help me understand / explain / distil / teach" -> tutor | ||
| - "derive / implement / debug / algorithm / model" -> problem-solver | ||
| - "harvard / bibtex / biblatex / biber / citations / doi" -> reference-manager | ||
| - "latex compile / .tex error / package / build log" -> latex-assembler | ||
| - "outline / structure / argument flow" -> paper-architect | ||
| - "draft section / write introduction/methods/related work" -> section-drafter | ||
| - "polish / rewrite / tighten" -> quality-refiner | ||
| - "synthesize / summarize / consolidate" -> research-consolidator | ||
| - "brainstorm / ideate / suggest" -> brainstorm | ||
| - otherwise: research-consolidator | ||
|
|
||
| ## Output requirements | ||
| When routing: | ||
| - Choose exactly one agent. | ||
| - Ask a clarifying question only when required inputs are missing. | ||
| - Do not fabricate citations, sources, quotes, or attribution. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # PaperKit Agent Skills | ||
|
|
||
| PaperKit exposes Copilot Agent Skills to make routing and defaults discoverable in tools that support skill injection. | ||
|
|
||
| ## Skills included | ||
|
|
||
| ### paperkit-routing | ||
| Use for routing PaperKit requests to a single agent based on the orchestrator tie-break rules. | ||
|
|
||
| Source of truth: | ||
| - [.paperkit/core/agents/orchestrator.md](../core/agents/orchestrator.md) | ||
|
|
||
| ### paperkit-defaults | ||
| Use to apply PaperKit workflow defaults like citation style, output folders, and document class. | ||
|
|
||
| Source of truth: | ||
| - [.paperkit/core/config.yaml](../core/config.yaml) | ||
|
|
||
| ## Locations | ||
| Project skills are located under `.github/skills/`. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fallback rule differs from the source of truth in orchestrator.md. The orchestrator specifies "otherwise: research-consolidator (if synthesis) or brainstorm (if ideation)", but this skill unconditionally routes to research-consolidator. Consider either matching the orchestrator's nuanced fallback or documenting why the simplification was chosen.