aiskillstore/marketplace/session-template

Claude Code and agent skill by aiskillstore/marketplace

Trust tier 3
  • community
  • ext:[{"type":"template","description":"Custom templates for code generation"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Tainted

Author "aiskillstore" has blocked skill(s)

Apply task-specific templates to AI session plans using ai-update-plan. Use when starting a new task to load appropriate plan structure (feature, bugfix, refactor, documentation, security).

Install

npx vskill@latest install aiskillstore/marketplace/session-template

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as aiskillstore/marketplace/session-template.

Session Template Applier

⚠️ MANDATORY: Read Project Documentation First

BEFORE applying session templates, you MUST read and understand the following project documentation:

Core Project Documentation
  1. README.md - Project overview, features, and getting started
  2. AI_DOCS/project-context.md - Tech stack, architecture, development workflow
  3. AI_DOCS/code-conventions.md - Code style, formatting, best practices
  4. AI_DOCS/tdd-workflow.md - TDD process, testing standards, coverage requirements
Session Context (if available)
  1. .ai-context/ACTIVE_TASKS.md - Current tasks and priorities
  2. .ai-context/CONVENTIONS.md - Project-specific conventions
  3. .ai-context/RECENT_DECISIONS.md - Recent architectural decisions
  4. .ai-context/LAST_SESSION_SUMMARY.md - Previous session summary
Additional AI Documentation
  1. AI_DOCS/ai-tools.md - Session management workflow (CRITICAL for this skill)
  2. AI_DOCS/ai-skills.md - Other specialized skills/agents available
Why This Matters
  • Workflow Integration: Understand how ai-update-plan fits into session management
  • Template Selection: Choose appropriate template based on project patterns
  • Customization: Adapt templates to match project-specific requirements
  • Task Context: Consider active tasks and recent decisions when planning

After reading these files, proceed with your template application task below.


Overview

Automatically apply task-specific planning templates to AI sessions, customizing generic steps with task-specific details.

When to Use

  • Starting a new AI session with ai-start-task
  • Need structured plan for common task types
  • Want to ensure all important steps are included
  • Standardizing workflow across team
  • Complex tasks needing comprehensive planning

Available Templates

1. Feature Development (feature)

For adding new functionality

2. Bug Fix (bugfix)

For fixing existing issues

3. Refactoring (refactor)

For code improvement without behavior changes

4. Documentation (documentation)

For doc updates and improvements

5. Security Fix (security)

For security vulnerabilities and hardening

Usage Examples

Apply Template at Session Start
bash
# Start session with feature template
apply feature development template for "Add OAuth2 authentication"

Output: Creates session with:

  • Research & design phase
  • TDD test-writing phase
  • Implementation phase
  • Security review phase
  • Documentation phase
Apply Template to Existing Session
bash
# Mid-session, realize you need structured plan
apply refactoring template for current session
Custom Template Selection
bash
# Let skill analyze task and choose template
suggest template for "Fix memory leak in data processor"
# → Skill suggests: "bugfix" template

Template Structures

Feature Template

File: templates/feature.md

markdown
### Phase 1: Research & Design
-[ ] Review related code in the codebase
-[ ] Identify integration points
-[ ] Design data models and interfaces
-[ ] Document API contracts
-[ ] Consider edge cases and error scenarios
### Phase 2: Write Tests (TDD)
-[ ] Write tests for happy path scenarios
-[ ] Write tests for edge cases
-[ ] Write tests for error handling
-[ ] Write integration tests
-[ ] Ensure tests fail initially (red phase)
### Phase 3: Implementation
-[ ] Implement core functionality
-[ ] Add error handling
-[ ] Add input validation
-[ ] Add logging
-[ ] Run tests - should pass (green phase)
### Phase 4: Refactoring
-[ ] Remove duplication (DRY)
-[ ] Simplify complex logic
-[ ] Improve naming
-[ ] Add type hints where missing
-[ ] Keep tests passing
### Phase 5: Quality Check
-[ ] Run make check (format, lint, test, security)
-[ ] Fix all quality issues
-[ ] Verify coverage ≥ 80%
-[ ] Review with tdd-reviewer agent
-[ ] Apply quality-fixer for auto-fixable issues
### Phase 6: Documentation
-[ ] Update README if user-facing changes
-[ ] Add/update docstrings
-[ ] Update API documentation
-[ ] Add usage examples
-[ ] Document configuration changes
### Phase 7: Final Review
-[ ] Review all changes with git diff
-[ ] Test manually in development
-[ ] Verify all edge cases work
-[ ] Check performance implications
-[ ] Ready for PR/commit
Bugfix Template

File: templates/bugfix.md

markdown
### Phase 1: Reproduction
-[ ] Reproduce the bug reliably
-[ ] Document steps to reproduce
-[ ] Identify affected components
-[ ] Check if regression (previously working)
-[ ] Review related issues
### Phase 2: Root Cause Analysis
-[ ] Add debug logging
-[ ] Trace execution flow
-[ ] Identify exact failure point
-[ ] Understand why it fails
-[ ] Document root cause
### Phase 3: Write Reproduction Test (TDD)
-[ ] Write test that reproduces the bug
-[ ] Verify test fails (confirms bug exists)
-[ ] Test should be specific to the bug
-[ ] Include edge cases related to bug
-[ ] Document expected vs actual behavior
### Phase 4: Fix Implementation
-[ ] Implement minimal fix for root cause
-[ ] Avoid over-engineering the fix
-[ ] Add defensive checks if needed
-[ ] Add logging for future debugging
-[ ] Verify test now passes
### Phase 5: Regression Prevention
-[ ] Add tests for related scenarios
-[ ] Check if bug exists elsewhere
-[ ] Add validation to prevent recurrence
-[ ] Update error messages if applicable
-[ ] Document why bug occurred
### Phase 6: Quality & Testing
-[ ] Run full test suite (no regressions)
-[ ] Run make check
-[ ] Verify coverage maintained/improved
-[ ] Test manually with original report steps
-[ ] Check performance not degraded
### Phase 7: Documentation
-[ ] Update changelog
-[ ] Document fix in commit message
-[ ] Add code comments explaining fix
-[ ] Update docs if behavior changed
-[ ] Reference issue number if applicable
Refactoring Template

File: templates/refactor.md

markdown
### Phase 1: Establish Safety Net
-[ ] Ensure tests exist for code being refactored
-[ ] Run tests - all must pass (baseline)
-[ ] Run make check - must pass
-[ ] Commit current state (safety checkpoint)
-[ ] Document current behavior
### Phase 2: Identify Improvements
-[ ] Identify code smells (duplication, complexity)
-[ ] Find violations of SOLID principles
-[ ] Look for unclear naming
-[ ] Identify missing abstractions
-[ ] List specific improvements needed
### Phase 3: Plan Refactoring Steps
-[ ] Break into small, safe steps
-[ ] Prioritize by risk/impact
-[ ] Identify dependencies between steps
-[ ] Plan to keep tests green throughout
-[ ] Consider breaking into multiple commits
### Phase 4: Refactor Incrementally
-[ ] Make one small change at a time
-[ ] Run tests after each change
-[ ] Keep tests passing (always green)
-[ ] Commit after each successful step
-[ ] If tests fail, revert and adjust approach
### Phase 5: Improve Design
-[ ] Extract methods/functions
-[ ] Remove duplication (DRY)
-[ ] Improve naming (clarity)
-[ ] Simplify complex conditionals
-[ ] Add type hints for clarity
### Phase 6: Quality Verification
-[ ] Run make check (must pass)
-[ ] Verify no behavior changes
-[ ] Check performance not degraded
-[ ] Review with tdd-reviewer agent
-[ ] Ensure coverage maintained
### Phase 7: Documentation
-[ ] Update docstrings for changed interfaces
-[ ] Add comments for complex logic
-[ ] Document why refactoring was needed
-[ ] Update architecture docs if applicable
-[ ] Record design decisions
Documentation Template

File: templates/documentation.md

markdown
### Phase 1: Content Audit
-[ ] Review existing documentation
-[ ] Identify outdated content
-[ ] Find missing documentation
-[ ] Check for broken links
-[ ] Review user feedback/questions
### Phase 2: Content Planning
-[ ] Define documentation scope
-[ ] Identify target audience
-[ ] Plan document structure
-[ ] Prioritize sections to update
-[ ] Gather technical details needed
### Phase 3: Write/Update Content
-[ ] Write clear, concise content
-[ ] Add code examples
-[ ] Include usage scenarios
-[ ] Add diagrams/visuals if helpful
-[ ] Follow documentation style guide
### Phase 4: Code Examples
-[ ] Ensure all code examples work
-[ ] Test code examples actually run
-[ ] Add comments to examples
-[ ] Show both basic and advanced usage
-[ ] Include error handling examples
### Phase 5: Review & Polish
-[ ] Check spelling and grammar
-[ ] Verify technical accuracy
-[ ] Ensure consistent terminology
-[ ] Check formatting and layout
-[ ] Validate all links work
### Phase 6: Sync with Code
-[ ] Update docstrings in code
-[ ] Ensure API docs match implementation
-[ ] Update type hints documentation
-[ ] Sync version numbers
-[ ] Update changelog
### Phase 7: Validation
-[ ] Have someone else review
-[ ] Test following docs from scratch
-[ ] Verify examples in clean environment
-[ ] Check docs render correctly
-[ ] Update AI_DOCS if relevant
Security Fix Template

File: templates/security.md

markdown
### Phase 1: Vulnerability Assessment
-[ ] Understand the security issue
-[ ] Assess severity and impact
-[ ] Identify affected versions
-[ ] Check if actively exploited
-[ ] Review security advisories
### Phase 2: Impact Analysis
-[ ] Identify all affected code paths
-[ ] Determine data exposure risk
-[ ] Check for similar issues elsewhere
-[ ] Assess authentication/authorization impact
-[ ] Review compliance implications
### Phase 3: Security Test (TDD)
-[ ] Write test demonstrating vulnerability
-[ ] Test should fail (exploits vulnerability)
-[ ] Test common attack vectors
-[ ] Test boundary conditions
-[ ] Document attack scenarios
### Phase 4: Implement Fix
-[ ] Apply principle of least privilege
-[ ] Use secure coding practices
-[ ] Validate all inputs
-[ ] Sanitize outputs
-[ ] Add rate limiting if applicable
### Phase 5: Security Hardening
-[ ] Add additional security checks
-[ ] Implement defense in depth
-[ ] Add security logging
-[ ] Update authentication/authorization
-[ ] Review encryption/hashing
### Phase 6: Security Testing
-[ ] Run security scan (Bandit)
-[ ] Test with malicious inputs
-[ ] Verify authentication works
-[ ] Test authorization boundaries
-[ ] Check for information disclosure
### Phase 7: Security Review
-[ ] Review with security-focused perspective
-[ ] Check OWASP Top 10 compliance
-[ ] Verify no new vulnerabilities introduced
-[ ] Test error messages don't leak info
-[ ] Document security measures
### Phase 8: Quality & Documentation
-[ ] Run make check
-[ ] Update security documentation
-[ ] Add security comments in code
-[ ] Document security assumptions
-[ ] Plan coordinated disclosure if needed

How It Works

Step 1: Analyze Task Description

Extract keywords to determine task type:

Feature indicators:

  • "add", "implement", "create", "build", "new"
  • "feature", "functionality", "capability"

Bugfix indicators:

  • "fix", "bug", "issue", "error", "broken"
  • "crash", "fail", "regression"

Refactor indicators:

  • "refactor", "improve", "clean up", "reorganize"
  • "simplify", "optimize", "restructure"

Documentation indicators:

  • "document", "docs", "README", "guide"
  • "explain", "describe", "instructions"

Security indicators:

  • "security", "vulnerability", "exploit", "CVE"
  • "authentication", "authorization", "XSS", "SQL injection"
Step 2: Load Template

Read appropriate template from templates/ directory:

bash
# Load template file
template_file=".claude/skills/session-template/templates/${template_type}.md"
cat "$template_file"
Step 3: Customize Template

Customize generic steps with task-specific details:

markdown
# Generic template:
-[ ] Review related code in the codebase

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
429
Repository forks
45
7-day trend score
30

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • templateCustom templates for code generation

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aiskillstore/marketplace/session-template/badge)](https://verified-skill.com/skills/aiskillstore/marketplace/session-template)

Something wrong with this skill or its page? Tell us.