init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
30
skills/bundled/verify.ts
Normal file
30
skills/bundled/verify.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { parseFrontmatter } from '../../utils/frontmatterParser.js'
|
||||
import { registerBundledSkill } from '../bundledSkills.js'
|
||||
import { SKILL_FILES, SKILL_MD } from './verifyContent.js'
|
||||
|
||||
const { frontmatter, content: SKILL_BODY } = parseFrontmatter(SKILL_MD)
|
||||
|
||||
const DESCRIPTION =
|
||||
typeof frontmatter.description === 'string'
|
||||
? frontmatter.description
|
||||
: 'Verify a code change does what it should by running the app.'
|
||||
|
||||
export function registerVerifySkill(): void {
|
||||
if (process.env.USER_TYPE !== 'ant') {
|
||||
return
|
||||
}
|
||||
|
||||
registerBundledSkill({
|
||||
name: 'verify',
|
||||
description: DESCRIPTION,
|
||||
userInvocable: true,
|
||||
files: SKILL_FILES,
|
||||
async getPromptForCommand(args) {
|
||||
const parts: string[] = [SKILL_BODY.trimStart()]
|
||||
if (args) {
|
||||
parts.push(`## User Request\n\n${args}`)
|
||||
}
|
||||
return [{ type: 'text', text: parts.join('\n\n') }]
|
||||
},
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue