/memstack:goalfrom memstack
Structures ambiguous tasks into TASK / WHY / OUTCOME / CONSTRAINTS / VERIFICATION before execution. Activates on 'goal', 'set a goal', or fuzzy finish lines.
Ships in memstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Define what "done" looks like and how you'll prove it, before you write a line of code.
When this skill activates, output:
🎯 Goal: Finish line defined.
Then walk the user through the five fields in order, one prompt at a time or as a single template: whichever fits the flow. Fill in what the request already tells you; ask only for what's missing. Put the most weight on VERIFICATION: it is the field that is required, the field that is skipped most often, and the field that turns "I think it's done" into "I can show it's done." Do not let a goal close without a concrete, checkable verification criterion.
| Context | Status |
|---|---|
| User says "goal", "set a goal", "define the goal", "plan this properly" | ACTIVE: structure the five fields |
| User is starting a non-trivial task with a fuzzy finish line | ACTIVE, offer to define the goal first |
| User asks "how will we know this is done?" / "what's the definition of done?" | ACTIVE: VERIFICATION-first |
| User is mid-execution and just wants the next step | DORMANT: use work, not goal |
| The goal is already clearly stated with a checkable outcome | DORMANT, don't re-litigate a good goal |
| Casual question, chit-chat, or a one-line lookup | DORMANT: do not activate |
A goal is a task with a finish line you can stand on. Five fields:
A goal without a concrete VERIFICATION criterion is incomplete, not merely unpolished. "It works," "done," and "tests pass" are not verification, they assert success without naming what you'd observe to confirm it. That gap is exactly how a green build ships the wrong behavior. State the check, not the vibe.
The skill shells out to the goal engine for parsing and validation (the same engine the Architect stage uses) so a drafted goal is checked the same way everywhere.
# Print the blank five-field template
python -m memstack_skill_loader.goal template
# Validate a drafted goal (reads the labeled text, reports errors + warnings)
python -m memstack_skill_loader.goal validate
validate enforces the rules: TASK, OUTCOME, and VERIFICATION must be present; a present-but-vacuous VERIFICATION (e.g. "it works") comes back as a warning telling you to state a concrete, checkable criterion. Errors mean the goal isn't ready to execute; warnings mean tighten it before you trust it.
Note: the engine module (
goal_engine.py) exists today; the thin CLI entry (python -m memstack_skill_loader.goal) is wired in a later registration step. If the command isn't callable yet, don't block, guide the user through the five fields by hand and show the template inline (below). The discipline is the point; the CLI is a convenience.
Inline template (fallback when the CLI isn't available):
TASK: (what to do)
WHY: (why it matters / who it's for - optional)
OUTCOME: (the exact finished result - what 'done' looks like)
CONSTRAINTS: (what must or must not be done - optional, one per line)
VERIFICATION: (how you'll prove the outcome is complete - a concrete, checkable criterion)
User: "make the scanner better"
That's a wish, not a goal, there's no finish line and no way to prove success. Structured:
🎯 Goal: Finish line defined.
TASK: Improve the site scanner's transport-security scoring
WHY: Users trust the score to flag insecure sites; today HTTP and HTTPS
sites can score the same, which is misleading
OUTCOME: The scan assigns a strictly lower security score to a plain-HTTP
site than to the same site served over HTTPS
CONSTRAINTS:
- no new dependencies
- don't change the score scale or the JSON output shape
VERIFICATION: run the scanner against http://example.test and
https://example.test (same content) and confirm the HTTP
scan's numeric score is lower than the HTTPS scan's
Why this matters: a vague version ("scanner feels better," "tests pass") could ship with the HTTP and HTTPS scores still identical and every existing test still green. The build passes while the behavior is wrong. The VERIFICATION line makes that failure impossible to miss: two scans, one comparison, a criterion you either meet or you don't. Define that line before execution, and "done" stops being a matter of opinion.
validate)python -m memstack_skill_loader.goal (template / validate)goal_engine.py) used by both this skill and the Architect stage. (Origin: MemStack, Jul 2026)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cwinvestments/memstack --plugin memstack87 skills in this plugin
/memstack-seo-ai-search-visibilityUse this skill when the user says 'AI search', 'AI visibility', 'ChatGPT ranking', 'Perplexity optimization', 'GEO', 'generative engine optimization', or needs to optimize content for AI-powered search engines and LLM citations. Do NOT use for traditional SEO audits or Google Ads./memstack-security-api-auditUse this skill when the user says 'audit API', 'check API security', 'API routes security', 'endpoint audit', 'check my routes', or needs to verify API route protection. Reviews API endpoints for authentication, authorization, and input validation gaps. Do NOT use for frontend security headers or dependency scanning./memstack-development-api-designerUse this skill when the user says 'design API', 'API endpoints', 'REST API', 'API designer', 'route structure', 'API architecture', or is designing RESTful API routes, request/response schemas, and endpoint organization. Do NOT use for API security audits or database design.Other plugins' skills for the same job