-
Notifications
You must be signed in to change notification settings - Fork 0
Add evals and improve SKILL.md with version routing and review workflow #4
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
Merged
Merged
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
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,166 @@ | ||||||
| [ | ||||||
| { | ||||||
| "name": "lookup_stdwrap", | ||||||
| "prompt": "I need to use stdWrap wrap in my TYPO3 TypoScript setup. Look up the reference for me.", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*stdWrap" }, | ||||||
| { "type": "content", "pattern": "stdWrap|wrap" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "lookup_fluidtemplate", | ||||||
| "prompt": "How do I configure a FLUIDTEMPLATE content object in TYPO3 v12 TypoScript?", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*FLUIDTEMPLATE" }, | ||||||
| { "type": "content", "pattern": "templateRootPaths|templateName" }, | ||||||
| { "type": "content", "pattern": "(v12|version 12)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "pageview_vs_fluidtemplate", | ||||||
| "prompt": "Should I use PAGEVIEW or FLUIDTEMPLATE for a new TYPO3 v13 project?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "PAGEVIEW" }, | ||||||
| { "type": "content", "pattern": "(recommend|prefer|modern|new)" }, | ||||||
| { "type": "content", "pattern": "FLUIDTEMPLATE" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "recipe_page_setup", | ||||||
| "prompt": "Show me the recipe for a basic page setup in TypoScript.", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--recipe.*page-setup" }, | ||||||
| { "type": "content", "pattern": "page\\s*=\\s*PAGE" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "recipe_menu_setup", | ||||||
| "prompt": "How do I create a navigation menu in TypoScript? Show me the recipe.", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--recipe.*menu" }, | ||||||
| { "type": "content", "pattern": "(HMENU|MenuProcessor|menu)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "deprecations_v13", | ||||||
| "prompt": "What TypoScript features are deprecated in TYPO3 v13?", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--deprecations" }, | ||||||
| { "type": "content", "pattern": "(INCLUDE_TYPOSCRIPT|Site Sets|deprecated)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "deprecations_v14", | ||||||
| "prompt": "What TypoScript changes are removed in TYPO3 v14?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "INCLUDE_TYPOSCRIPT" }, | ||||||
| { "type": "content", "pattern": "(removed|removal)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "debug_page_not_configured", | ||||||
| "prompt": "I get 'The page is not configured' error in my TYPO3 frontend. How do I fix it?", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--debug.*page.*not configured" }, | ||||||
| { "type": "content", "pattern": "(PAGE|page\\s*=|typeNum)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "debug_template_not_found", | ||||||
| "prompt": "TYPO3 shows 'No TypoScript template found' on my page. What is wrong?", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--debug" }, | ||||||
| { "type": "content", "pattern": "(sys_template|Site Set|root)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "checklist_typoscript", | ||||||
| "prompt": "Give me a code review checklist for TypoScript files.", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--checklist.*typoscript" }, | ||||||
| { "type": "content", "pattern": "(no_cache|deprecated|stdWrap)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "checklist_fluid", | ||||||
| "prompt": "What should I check when reviewing Fluid templates?", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--checklist.*fluid" }, | ||||||
| { "type": "content", "pattern": "(f:translate|f:format\\.raw|escap)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "review_existing_typoscript", | ||||||
| "prompt": "Review this TypoScript for issues:\n```typoscript\npage = PAGE\npage.10 = FLUIDTEMPLATE\npage.10.file = EXT:my_ext/template.html\nconfig.no_cache = 1\n[globalVar = GP:L=1]\n config.sys_language_uid = 1\n[end]\n```", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "(no_cache|deprecated|production)" }, | ||||||
| { "type": "content", "pattern": "(condition|globalVar|legacy|Symfony)" }, | ||||||
| { "type": "content", "pattern": "(templateRootPaths|file)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "lint_rules_lookup", | ||||||
| "prompt": "What lint rules should I follow when writing TypoScript?", | ||||||
| "assertions": [ | ||||||
| { "type": "tool_use", "tool": "Bash", "pattern": "lookup\\.sh.*--lint" }, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The assertion pattern lookup\.sh.*--lint is imprecise. The actual flag defined in SKILL.md and implemented in lookup.sh is --lint-rules. Updating the pattern ensures the evaluation specifically verifies the correct flag usage.
Suggested change
|
||||||
| { "type": "content", "pattern": "(indent|spacing|lint)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "site_sets_v13", | ||||||
| "prompt": "How do I set up Site Sets in TYPO3 v13 to distribute my extension's TypoScript?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "config\\.yaml" }, | ||||||
| { "type": "content", "pattern": "(settings\\.definitions|dependencies|Configuration/Sets)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "coa_vs_coa_int", | ||||||
| "prompt": "When should I use COA_INT instead of COA in TypoScript?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "COA_INT" }, | ||||||
| { "type": "content", "pattern": "(uncached|dynamic|per.request|every request)" }, | ||||||
| { "type": "content", "pattern": "(cache|performance|overhead)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "copy_vs_reference", | ||||||
| "prompt": "What is the difference between < and =< operators in TypoScript?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "(copy|independent)" }, | ||||||
| { "type": "content", "pattern": "(reference|linked|current state)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "fluid_xss_prevention", | ||||||
| "prompt": "How do I prevent XSS in my Fluid templates?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "(escape|auto.escap|f:format\\.raw)" }, | ||||||
| { "type": "content", "pattern": "(f:sanitize\\.html|trusted|user.input)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "dataprocessor_usage", | ||||||
| "prompt": "I need to fetch news records and display them in a Fluid template. Should I use CONTENT cObject or DatabaseQueryProcessor?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "DatabaseQueryProcessor" }, | ||||||
| { "type": "content", "pattern": "(Fluid|prefer|dataProcessing)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "condition_syntax_v12", | ||||||
| "prompt": "How do I write a condition in TypoScript that checks if a backend user is logged in (TYPO3 v12+)?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "backend\\.user\\.isLoggedIn" }, | ||||||
| { "type": "content", "pattern": "(Symfony|Expression Language|\\[)" } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "migration_v12_to_v13", | ||||||
| "prompt": "What TypoScript changes are needed when upgrading from TYPO3 v12 to v13?", | ||||||
| "assertions": [ | ||||||
| { "type": "content", "pattern": "(Site Sets|PAGEVIEW|config\\.baseURL)" }, | ||||||
| { "type": "content", "pattern": "(migration|upgrade|replace)" } | ||||||
| ] | ||||||
| } | ||||||
| ] | ||||||
Oops, something went wrong.
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 statement that FLUIDTEMPLATE is deprecated in v14 contradicts the provided reference files. According to references/review/migration-v12-to-v13.md (line 13) and references/review/deprecations.md (line 76), FLUIDTEMPLATE is NOT deprecated and continues to work in v13 and v14, although PAGEVIEW is recommended for new page templates.