소스 정보
- 저장소
- tomevault-io/skills-registry
- 최근 소스 활동
- 2026년 5월 11일 15:30
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tomevault-io/skills-registry --skill test-generation명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | test-generation |
| description | name: test-generation Use when this capability is needed. |
Generate comprehensive test suites for JavaScript and TypeScript code using Vitest framework following Forgekeeper testing conventions.
Use this skill when:
Read and understand:
Identify:
Create test file following Forgekeeper conventions:
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { functionToTest } from '../module.mjs';
describe('Module Name', () => {
describe('functionToTest', () => {
it('handles normal case correctly', () => {
const result = functionToTest('input');
expect(result).toBe('expected');
});
it('handles edge case: empty input', () => {
const result = functionToTest('');
expect(result).toBe('');
});
it('throws error for invalid input', () => {
expect(() => functionToTest(null)).toThrow('Invalid input');
});
});
});
Include:
Ensure tests:
Complete test file(s) with:
Error: Cannot determine what to test
Error: Missing dependencies for mocking
Error: Test file already exists
User request: "Write tests for the formatSkillForPrompt function"
Skill invocation:
1. Read skills/loader.mjs to understand the function
2. Identify test cases:
- Normal skill object
- Missing tags
- Empty instructions
3. Generate test file:
```javascript
import { describe, it, expect } from 'vitest';
import { formatSkillForPrompt } from '../loader.mjs';
describe('Skills Loader', () => {
describe('formatSkillForPrompt', () => {
it('formats skill with all fields correctly', () => {
const skill = {
name: 'test-skill',
description: 'A test skill',
tags: ['test', 'demo'],
instructions: '## Step 1\nDo something'
};
const result = formatSkillForPrompt(skill);
expect(result).toContain('## Skill: test-skill');
expect(result).toContain('**Description**: A test skill');
expect(result).toContain('**Tags**: test, demo');
expect(result).toContain('## Step 1');
});
it('handles skill with no tags', () => {
const skill = {
name: 'no-tags',
description: 'Skill without tags',
tags: [],
instructions: 'Instructions here'
};
const result = formatSkillForPrompt(skill);
expect(result).toContain('**Tags**: none');
});
it('handles undefined tags gracefully', () => {
const skill = {
name: 'undefined-tags',
description: 'Tags undefined',
instructions: 'Instructions'
};
const result = formatSkillForPrompt(skill);
expect(result).toContain('**Tags**: none');
});
});
});
### Example 2: Class Method Tests with Mocking
User request: "Test the SkillsRegistry class"
Skill invocation:
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { SkillsRegistry } from '../registry.mjs';
// Mock the loader module
vi.mock('../loader.mjs', () => ({
loadAllSkills: vi.fn(async () => [
{ name: 'skill1', description: 'First skill', tags: ['test'], enabled: true },
{ name: 'skill2', description: 'Second skill', tags: ['demo'], enabled: true }
]),
reloadSkills: vi.fn(async () => [
{ name: 'skill1', description: 'First skill', tags: ['test'], enabled: true }
])
}));
describe('SkillsRegistry', () => {
let registry;
beforeEach(() => {
registry = new SkillsRegistry({ enableHotReload: false });
});
afterEach( () => {
(registry) {
registry.();
}
});
(, {
(, () => {
registry.();
(registry.).();
(registry.()).();
});
(, () => {
registry.();
registry.();
(registry.).();
});
});
(, {
( () => {
registry.();
});
(, {
skill = registry.();
(skill).();
(skill.).();
});
(, {
skill = registry.();
(skill).();
});
});
(, {
( () => {
registry.();
});
(, {
results = registry.([]);
(results).();
(results[].).();
});
(, {
results = registry.([]);
(results).();
});
});
});
## Resources
- `frontend/test/` - Existing test files for reference
- Vitest documentation: https://vitest.dev/
- Project test examples in `frontend/test/mcp/`
## Notes
- Follow existing test patterns in the Forgekeeper codebase
- Use descriptive test names that explain what is being tested
- Keep tests fast and isolated
- Mock external dependencies (file system, network, etc.)
- Aim for high coverage but prioritize meaningful tests over 100% coverage
## Version History
- **1.0.0** (2025-11-21): Initial release
---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/gatewaybuddy) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->