Skip to content

Instantly share code, notes, and snippets.

@odellt
Last active February 10, 2022 17:26
Show Gist options
  • Save odellt/10d814980893f2dcbbda7b9761824558 to your computer and use it in GitHub Desktop.
Save odellt/10d814980893f2dcbbda7b9761824558 to your computer and use it in GitHub Desktop.
User story snippets
{
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
//
// How to install and use:
// - `CMD + Shift + p`
// - Select `Preferences: Configure User Snippets` -> `markdown.json`
// - Copy + paste the snippets into this file and save
// - Open new file
// - `CMD + Shift + p`
// - Select `Change Language Mode` -> `Markdown (markdown)`
// - Type `asa`
// - Ctrl + Space
// - Select `asa User Story: Template`
// - Enjoy
"User Story: Template": {
"prefix": "asa",
"body": [
"## Definition",
"",
"_As a **${1:Persona}**_,",
"",
"_I want ${2:Functionality}_,",
"",
"_So that ${3:Benefit}_.",
"",
"Related **[RFC](${4:link.to.rfc})**",
"",
"## Description",
"",
"${5:Describe the functionality}",
"",
"## Acceptance Criteria",
"",
"${6:Type \"acc\" to get another awesome Snippet}"
],
"description": "Basic user story template"
},
"User Story: Acceptance Criteria": {
"prefix": "acc",
"body": [
"- ${1:Scenario ID}. **Scenario** ${2:Scenario Name} ",
"**Given** ${3:Starting State} ",
"**When** ${4:Specific Action}",
"**Then** ${5:Desired Outcome}"
],
"description": "Template for acceptance criteria"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment