Skip to content
Prompt

engineered-meta-cognitive-workflow-architecture — Windsurf Rules

by entrepeneur4lyf

AI Summary

A meta-cognitive workflow architecture for Windsurf that implements persistent memory banking and structured initialization/documentation/implementation workflows to maintain context across AI sessions. Ideal for developers using Windsurf who need reliable state management and systematic task organization.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "engineered-meta-cognitive-workflow-architecture — Windsurf Rules" prompt rules to my project.
Repository: https://github.com/entrepeneur4lyf/engineered-meta-cognitive-workflow-architecture

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Meta-Cognitive Workflow Architecture

Initialization Workflow

`mermaid flowchart TD Start[Start] --> checkMemoryBankExists{checkMemoryBankExists} checkMemoryBankExists -->|No| createMemoryBankDirectory[createMemoryBankDirectory] createMemoryBankDirectory --> scaffoldMemoryBankStructure[scaffoldMemoryBankStructure] scaffoldMemoryBankStructure --> populateMemoryBankFiles[populateMemoryBankFiles] populateMemoryBankFiles --> readMemoryBank[readMemoryBank] checkMemoryBankExists -->|Yes| readMemoryBank readMemoryBank --> verifyFilesComplete{verifyFilesComplete} verifyFilesComplete -->|No| createMissingFiles[createMissingFiles] createMissingFiles --> verifyContext[verifyContext] verifyFilesComplete -->|Yes| verifyContext verifyContext --> developStrategy[developStrategy] `

Documentation Workflow

`mermaid flowchart TD Start[Start] --> checkDocumentationExists{checkDocumentationExists} checkDocumentationExists -->|No| scaffoldDocumentationStructure[scaffoldDocumentationStructure] checkDocumentationExists -->|Yes| generateDocumentation[generateDocumentation] scaffoldDocumentationStructure --> generateDocumentation generateDocumentation --> selfEvaluateDocumentation[selfEvaluateDocumentation] selfEvaluateDocumentation --> reviewDocumentation[reviewDocumentation] reviewDocumentation -->|Score < 4| reviseDocumentation[reviseDocumentation] reviewDocumentation -->|Score >= 4| updateMemoryBank[updateMemoryBank] reviseDocumentation -->|Improved| updateMemoryBank reviseDocumentation -->|Still Failing| rejectAndFlag[rejectAndFlag] updateMemoryBank --> calculateDocumentationQualityScore[calculateDocumentationQualityScore] `

Implementation Workflow

`mermaid flowchart TD Start[Start] --> executeTask[executeTask] executeTask --> checkMemoryBank[checkMemoryBank] checkMemoryBank --> updateDocumentation[updateDocumentation] updateDocumentation --> updatePlans[updatePlans] updatePlans --> executeImplementation[executeImplementation] executeImplementation --> enforceCodeQualityStandards[enforceCodeQualityStandards] enforceCodeQualityStandards --> executeCreatorPhase[executeCreatorPhase] executeCreatorPhase --> executeCriticPhase[executeCriticPhase] executeCriticPhase --> executeDefenderPhase[executeDefenderPhase] executeDefenderPhase --> executeJudgePhase[executeJudgePhase] `

Error Recovery Workflow

`mermaid flowchart TD Start[Start] --> detectToolFailure[detectToolFailure] detectToolFailure --> logFailureDetails[logFailureDetails] logFailureDetails --> analyzeFailureCauses[analyzeFailureCauses] analyzeFailureCauses --> reviewToolUsage[reviewToolUsage] reviewToolUsage --> adjustParameters[adjustParameters] adjustParameters --> executeRetry[executeRetry] executeRetry --> checkRetrySuccess{checkRetrySuccess} checkRetrySuccess -->|Success| continueTask[Continue Task] checkRetrySuccess -->|Failure| incrementRetryCount[incrementRetryCount] incrementRetryCount --> checkRetryLimit{checkRetryLimit} checkRetryLimit -->|Under Limit| executeRetry checkRetryLimit -->|Limit Reached| escalateToUser[escalateToUser] escalateToUser --> documentFailure[documentFailure] documentFailure --> alertUser[alertUser] `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1y ago
Dead
Adoption100+ stars on GitHub
240 ★ · Growing
DocsMissing or thin
Undocumented

GitHub Signals

Stars240
Forks27
Issues1
Updated1y ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more