Gsp add reference

From jubscodes/get-shit-pretty · View interactive version

Gsp add reference is an AI agent skill from the GitHub repository jubscodes/get-shit-pretty. Add reference material to a project — use when: add a reference, save inspiration, attach examples, link this site as reference, drop in a moodboard

How to use this skill

Skill file

<context>

Adds reference material (screenshots, wireframes, brand guidelines, competitor examples, design specs, URLs) to a project's references/ directory for use by all downstream agents.

References are loaded by design, build, and research commands and passed to their agents as additional context.

</context>

<objective>

Add reference material to a project for downstream agents to consume.

Input: User-provided files, URLs, or descriptions

Output: {project}/references/ with organized reference files + references/INDEX.md

</objective>

<rules>

</rules>

<process>

Step 0: Resolve project

Scan .design/projects/ for project directories. If only one project exists, use it. If multiple, ask the user which project to work on.

Set PROJECT_PATH = .design/projects/{project}

Step 1: Ensure references directory

mkdir -p {PROJECT_PATH}/references

Step 2: Determine reference type

If the user provided a file path, URL, or description in the skill invocation, use that. Otherwise, ask:

Use AskUserQuestion with options:

Step 3: Process reference

For file paths (images, PDFs, documents):

  1. Verify the file exists
  2. Copy to {PROJECT_PATH}/references/ with a descriptive name
  3. If it's an image, read it to generate a text description
  4. Write a companion .md file with metadata (source, date added, description, relevant screens/phases)

For URLs:

  1. Fetch the URL content
  2. Write a summary to {PROJECT_PATH}/references/url-{kebab-name}.md with:

For descriptions/notes:

  1. Write to {PROJECT_PATH}/references/note-{kebab-name}.md with:

Step 4: Update index

Write or update {PROJECT_PATH}/references/INDEX.md:

# Project References
> Project: {name} | Last updated: {DATE}

## References

| # | Reference | Type | File | Added | Relevant To |
|---|-----------|------|------|-------|-------------|
| 1 | {description} | {screenshot/url/note/guideline} | [{filename}](./{filename}) | {DATE} | {screens/phases} |

Step 5: Confirm

Display what was added and which phases will use it:

"Reference added. It will be available to all downstream phases."

</process>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.