AgentSkillsCN

task-type-feature-closing

关闭已完成的功能,并创建拉取请求。当用户已对实验环境进行验证,且功能已具备上线条件时,此技能便能派上用场。它提供最终验证、PR 创建,以及文档撰写等流程。

SKILL.md
--- frontmatter
name: task-type-feature-closing
description: Close completed feature and create pull request. Use when human has validated the playground and feature is ready to ship. Provides procedures for final verification, PR creation, and documentation.

Task Type: Feature Closing

Purpose

Execute Feature Closing tasks by:

  1. Verifying acceptance criteria
  2. Finalizing documentation
  3. Creating pull request
  4. Outputting summary

Important Notes

Skill Prerequisite

  • If you HAVE NOT learned task-execution-guideline skill, please learn it first before executing this skill.

Important: If Agent DO NOT have skill capability, can directly go to .github/skills/ folder to learn skills. And SKILL.md file is the entry point to understand each skill.


Task Type Default Attributes

AttributeValue
Task TypeFeature Closing
Categoryfeature-stage
Next Task TypeUser Manual
Require Human ReviewNo
Feature PhaseFeature Closing

Task Type Required Input Attributes

AttributeDefault Value
Auto ProceedFalse

Skill/Task Completion Output

This skill MUST return these attributes to the Task Data Model upon task completion:

yaml
Output:
  category: feature-stage
  status: completed | blocked
  next_task_type: User Manual
  require_human_review: No
  auto_proceed: {from input Auto Proceed}
  task_output_links: [PR link, changelog]
  feature_id: FEATURE-XXX
  feature_title: {title}
  feature_version: {version}
  feature_phase: Feature Closing

Definition of Ready (DoR)

#CheckpointRequired
1Code implementation completeYes
2Feature status is "Implemented"Yes
3All tests passingYes

Execution Flow

Execute Feature Closing by following these steps in order:

StepNameActionGate to Next
1Verify CriteriaCheck all acceptance criteria are metAll criteria met
2Finalize DocsUpdate README, API docs, CHANGELOGDocs complete
3Create PRCreate pull request with proper descriptionPR created
4Output SummaryProvide completion summary to humanSummary delivered

⛔ BLOCKING RULES:

  • Step 1 → 2: BLOCKED if any acceptance criterion not met
  • Step 1: If criteria not met, STOP and report to human

Execution Procedure

Step 1: Verify Acceptance Criteria

Action: Confirm all criteria are met

code
1. Get acceptance criteria from feature scope
2. Check each criterion
3. Document verification results
4. Flag any unmet criteria

🎨 Mockup Verification (Conditional):

code
IF Technical Scope in specification.md includes [Frontend] OR [Full Stack]:
  1. Open "Linked Mockups" from specification.md
  2. Compare implemented UI against mockup:
     - Layout matches mockup design
     - All UI elements present
     - Interactions work as shown
     - Visual styling is consistent
  3. Add mockup compliance to verification results
  4. Document any approved deviations

ELSE (Backend/API Only/Database):
  - Skip visual verification
  - Focus on functional acceptance criteria

Verification Template:

markdown
## Acceptance Criteria Verification

| # | Criterion | Status | Evidence |
|---|-----------|--------|----------|
| 1 | [Criterion 1] | ✓ Met | [How verified] |
| 2 | [Criterion 2] | ✓ Met | [How verified] |
| 3 | [Criterion 3] | ✗ Not Met | [What's missing] |
| 4 | UI matches mockup (if applicable) | ✓ Met | Visual comparison |

If criteria not met:

  • Stop and report to human
  • Do not proceed to PR creation
  • Wait for guidance

Step 2: Finalize Documentation

Action: Ensure all docs are complete and current

Documentation Checklist:

DocumentStatus Check
README (if user-facing)Updated with new feature
API docsEndpoints documented
Code commentsComplex logic explained
ChangelogEntry added
Feature docsAll artifacts present

Changelog Entry Format:

markdown
## [Version] - YYYY-MM-DD

### Added
- [Feature name]: [Brief description]

### Changed
- [Any changes to existing behavior]

### Fixed
- [Any bugs fixed during implementation]

Step 3: Create Pull Request

Action: Create PR with proper description

PR Title Format:

code
feat: [Feature Name] - [Brief Description]

PR Description Template:

markdown
## Summary
[1-2 sentences describing what this PR adds]

## Related
- Feature: FEATURE-XXX
- Design: [link to design doc]

## Changes
- [Major change 1]
- [Major change 2]
- [Major change 3]

## Testing
- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Human playground tested

## Screenshots/Demo
[If applicable]

## Checklist
- [ ] Code follows project conventions
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] No breaking changes (or documented)

Step 4: Output Summary

Action: Provide completion summary

Summary Template:

markdown
## Feature Complete: [Feature Name]

### Delivered
- [Key deliverable 1]
- [Key deliverable 2]

### Files Changed
- X files added
- Y files modified
- Z tests added

### Acceptance Criteria
- [X/Y] criteria met

### Pull Request
- PR #XXX: [Title]
- [Link to PR]

### Notes
- [Any important notes for reviewer]

Definition of Done (DoD)

#CheckpointRequired
1Acceptance criteria verifiedYes
2Documentation finalizedYes
3PR created with proper descriptionYes
4Summary provided to humanYes

Important: After completing this skill, always return to task-execution-guideline skill to continue the task execution flow and validate the DoD defined there.


Output Artifacts

ArtifactLocationDescription
PRGitHub/GitLabPull request
ChangelogCHANGELOG.mdVersion entry
Summary(in chat)Completion report
Status Logx-ipe-docs/features/FEATURE-XXX/changelog.mdFeature history

Patterns

Pattern: All Criteria Met

code
1. Verify criteria → All met ✓
2. Update docs → Complete ✓
3. Create PR → PR #123
4. Output summary
5. DONE

Pattern: Criteria Not Met

code
1. Verify criteria → 1 not met
2. STOP
3. Report to human:
   "Criterion X not met: [details]
    Options:
    a) Address the gap
    b) Modify criterion
    c) Defer to future"
4. Wait for guidance

Pattern: Minor Issues Found

code
1. Verify criteria → Met with minor issues
2. Fix minor issues
3. Re-verify → All met ✓
4. Continue to PR

Anti-Patterns

Anti-PatternProblemInstead
PR without testingBroken code mergedEnsure tests pass
Empty PR descriptionReviewer confusedWrite complete description
Skipping criteria checkIncomplete featureVerify each criterion
Giant PRHard to reviewKeep focused on one feature
No changelogLost historyAlways update changelog

Example

Feature: FEATURE-002 Email/Password Login

code
1. Execute Task Flow from task-execution-guideline skill

2. DoR Check:
   - Code implementation complete ✓
   - Feature status: Implemented ✓
   - Tests passing ✓

3. Step 1 - Verify Criteria:
   Acceptance Criteria:
   - [x] User can login with email/password
   - [x] Invalid credentials show error
   - [x] Token returned on success
   - [x] Rate limiting works
   
   All 4/4 met ✓

4. Step 2 - Documentation:
   - README.md updated ✓
   - API docs added ✓
   - CHANGELOG.md entry added ✓

5. Step 3 - Create PR:
   Created PR #42:
   "feat: Email/Password Authentication"
   
   Description includes:
   - Summary of changes
   - Files changed
   - Test coverage
   - Screenshots

6. Step 4 - Summary:
   
   ## Feature Complete: Email/Password Login
   
   ### Delivered
   - User registration
   - Login/logout endpoints
   - JWT token management
   - Rate limiting
   
   ### Files
   - 8 files added
   - 2 files modified
   - 15 tests added
   
   ### PR
   - PR #42: feat: Email/Password Authentication

7. Return Task Completion Output:
   feature_id: FEATURE-002
   feature_status: Done Feature Closing
   category: feature-stage
   next_task_type: N/A
   require_human_review: No
   task_output_links:
     - PR #42
     - CHANGELOG.md
     - x-ipe-docs/features/FEATURE-002/

8. Resume Task Flow from task-execution-guideline skill
   (Feature chain COMPLETE)

Human Communication

When closing is complete:

code
Feature [Name] is complete! 🎉

PR: #XXX - [Title]
[Link to PR]

Summary:
- [Key point 1]
- [Key point 2]

All acceptance criteria verified. Ready for review/merge.