Tips for Using AI Assistants in Xanthan

Getting Started

If you’re using VS Code

  1. Install an AI assistant:
  2. Open your project in VS Code (see Working Locally guide)

  3. Start making changes - The AI will suggest code as you type, or you can ask it questions

Best Practices

Be Specific About Location

Instead of: “Make text bigger” Try: “Make paragraph text bigger in the main content area”

Instead of: “Change the color” Try: “Change the navigation bar background color to dark blue”

Use Visual References

If you see something you like on your site:

Ask for Explanations

Don’t just accept code blindly. Ask:

Understanding helps you make better decisions and learn as you go.

Test Changes Immediately

After the AI suggests changes:

  1. Save the file
  2. Refresh your browser
  3. Check if it looks right
  4. If not, tell the AI what needs adjustment: “That’s too much, make it smaller”

How to Ask for What You Want

The key is being specific about what you want to change and where. Here are effective ways to communicate with AI assistants:

Method 1: Inline Comments

Open the CSS file you want to modify (like assets/css/base.css) and write a comment describing what you want:

/* Make the spacing between list items larger */

The AI will suggest code to add below your comment. Press Tab to accept the suggestion.

Method 2: Chat Interface

Most AI assistants have a chat panel. You can ask questions like:

Method 3: Highlight and Ask

Select existing code and ask the AI to modify it:

When Things Don’t Work

If the AI’s suggestion doesn’t do what you want:

  1. Be more specific: “That’s not quite right. I want the spacing between paragraphs, not inside them”

  2. Describe what’s wrong: “The color is too dark, can you make it lighter?”

  3. Ask for alternatives: “What are other ways to achieve this effect?”

  4. Request an explanation: “Why isn’t this working the way I expected?”

  5. Undo and try again: In VS Code, press Ctrl+Z (or Cmd+Z on Mac) to undo changes