sparc-refine
यह क्या करती है
यह स्किल SPARC तरीके के आख़िरी दो चरण कवर करती है: समीक्षा और टेस्ट से कोड को निखारना, फिर दस्तावेज़ और तैयारी की जाँच पूरी करना। यह उन डेवलपर्स के लिए है जो किसी फ़ीचर को production-गुणवत्ता तक लाते हैं।
कब इस्तेमाल करें
- ✓जब कोई फ़ीचर बन चुका हो और उसकी specification के मुकाबले सावधानी से समीक्षा चाहिए।
- ✓जब रिलीज़ से पहले test coverage बढ़ाना हो।
- ✓जब किसी फ़ीचर को अंतिम दस्तावेज़ और तैयारी जाँच की ज़रूरत हो।
Skill का लिंक
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-sparc/skills/sparc-refine/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“नोटिफ़िकेशन फ़ीचर की उसकी spec के मुकाबले समीक्षा कीजिए, test coverage सुधारिए और उसे रिलीज़ के लिए तैयार कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल पहले के design artifacts लोड करती है, हर आवश्यकता, pattern और गुणवत्ता नियम के मुकाबले कोड जाँचती है, फिर tests सुधारती है। वह validation, दस्तावेज़ और तैयारी रिकॉर्ड के साथ पूरा करती है, और जो काम पहले से पूरा चिह्नित है उसे छोड़ देती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
SPARC Refinement + Completion
Run Phases 4 and 5 of the SPARC methodology: iteratively improve through code review and testing, then finalize with validation, documentation, and deployment readiness.
When to use
After the Architecture phase is complete and its gate has been passed. This skill covers the final two phases that bring a feature from implemented to production-ready.
Steps
Phase 4 — Refinement
Retrieve all prior artifacts — call
mcp__plugin_ruflo-core_ruflo__memory_searchwith namespacesparc-phasesand query for the feature slug. Load spec (acceptance criteria), pseudocode, and architecture.Retrieve phase state — call
mcp__plugin_ruflo-core_ruflo__memory_retrievewith namespacesparc-stateand exact keycurrent-phase-{feature-slug}to confirm we are in Phase 4 (or Phase 5 when resuming completion). Ifstatus === "complete", report the existing completion and do not write again; stop on missing/malformed state.Code review — review the implementation against: a. Specification compliance: does every acceptance criterion have a corresponding code path? b. Architecture adherence: do modules follow the defined boundaries and dependency rules? c. Pseudocode fidelity: does the implementation match the designed algorithms? d. Code quality: naming conventions, single responsibility, error handling, no dead code e. Document findings as review comments
Test coverage analysis: a. Run existing tests and measure coverage b. Identify uncovered acceptance criteria c. Write missing tests:
- Unit tests for each public function
- Integration tests for cross-module interactions
- Edge case tests for each identified edge case from the spec d. Target coverage >= 80% on new code
Performance validation — if the spec includes performance constraints: a. Profile critical paths identified in the pseudocode b. Compare measured performance against constraint thresholds c. Optimize if thresholds are not met
Iterate — repeat steps 3-5 until:
- All acceptance criteria have passing tests
- Code review has no critical or high-severity issues
- Coverage meets the threshold
- Performance constraints are satisfied
Store refinement artifact — call
mcp__plugin_ruflo-core_ruflo__memory_storewith namespacesparc-phases, keyrefine-{feature-slug}, value:{ status: "complete", reviewFindings: [...], coveragePercent: N, performanceResults: {...}, iterations: N }Before moving to Phase 5, evaluate the Phase 4 gate (passing acceptance tests, approved review, coverage >= 80%) and store its evidence in
sparc-gates. On failure preserve phase, increment gateAttempts, refreshupdatedAtwith the current ISO timestamp at the exact current-phase key, report blockers and stop. On pass preserve existing state fields, set phase 5, phaseName "Completion", status "active", andupdatedAtto the current ISO timestamp at the same key insparc-state. When resuming Phase 5, do not repeat the Phase 4 transition.Record trajectory step — call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-stepwith refinement summary
Phase 5 — Completion
Full regression — run the complete test suite to verify no regressions from refinement changes
Traceability matrix — build a matrix mapping every acceptance criterion to:
- The test(s) that verify it
- The code file(s) that implement it
- The current pass/fail status
Documentation: a. Generate API documentation from code comments and type definitions b. Write usage examples for key public interfaces c. Update any existing documentation affected by the changes
Deployment readiness checklist:
- All tests passing
- Documentation complete
- Database migrations prepared (if applicable)
- Configuration changes documented
- Feature flags configured (if applicable)
- Rollback plan defined
- Security review complete (no secrets, inputs validated)
Evaluate the final Phase 5 gate — completion is allowed only when final gate evidence for every criterion passes: full regression actually ran and passed, documentation is complete, deployment checklist is verified, and traceability links every acceptance criterion to passing tests. Store the actual pass/fail evidence at
gate-5-{feature-slug}-{timestamp}in `sparc-ga
अक्सर पूछे जाने वाले सवाल
अगर फ़ीचर पहले से पूरा चिह्नित हो तो?
स्किल मौजूदा पूर्णता बताती है और उसे दोबारा नहीं लिखती।
समीक्षा में क्या जाँचा जाता है?
हर स्वीकृति मानदंड के लिए कोड है या नहीं, module सीमाएँ बनी हैं या नहीं, और कोड गुणवत्ता नियम पूरे होते हैं या नहीं।
क्या यह फ़ीचर deploy करती है?
यह deployment की तैयारी करती है। deployment खुद एक अलग फ़ैसला है।
जानकारी
लेखक का मूल विवरण
Run the SPARC Refinement and Completion phases — review code, improve test coverage, validate against specification, and generate documentation
repo: ruvnet/ruflo
लोकप्रियता
- GitHub स्टार
- 81k
- रैंकिंग में स्थान
- #1696
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-adaptive-coordinator
81kआपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।
agent-agent
81kआपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।
agent-agentic-payments
81kAI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।
agent-analyze-code-quality
81kआपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।