Daniel Toranzo Pérez

Agent guide

This repository is a bilingual Jekyll CV and technical blog. This guide describes how to add articles, pages, and tools without breaking the existing design, SEO, or validation.

Ground rules

Repository facts

Article workflow

1. Create or choose an issue

Use an issue that describes the article or change. The issue title and body can be in English; the published article must be bilingual.

If gh is unavailable, use the GitHub API with credentials from git credential fill. Do not invent issue or pull-request numbers.

2. Create a branch from main

git switch main
git pull --ff-only
git switch -c feature/<issue-number>-<short-slug>

Example: feature/15-ios-tools-and-agent-guide.

3. Create the post

Use a lowercase ASCII slug:

_posts/YYYY-MM-DD-slug.markdown

The date in the filename is the publication date. Future-dated posts are excluded from normal builds; preview them with --future:

bundle exec jekyll build --future
bundle exec jekyll serve --future

Do not backdate a post just to make it visible in a normal build.

4. Front matter

Every post must include:

---
title: "Título en español"
title_en: "Title in English"
date: 2026-11-06 00:00:00
description: "Resumen en español para la tarjeta y SEO."
description_en: "English summary for the card and SEO."
lang: es
tags: [iOS, SwiftUI]
categories: blog
layout: blog
reading_time: 7
---

5. Bilingual body

Wrap each language in a single container with markdown="1":

<div class="lang-es" lang="es" markdown="1">

Contenido en español.

</div>

<div class="lang-en" lang="en" markdown="1">

Content in English.

</div>

Rules:

6. Writing and code examples

7. Validate

Run the same checks as CI:

ruby script/check_bilingual_content.rb
bundle exec jekyll build --future

Check the generated page and sitemap:

test -f "_site/blog/YYYY/MM/DD/slug/index.html"
grep -n "/blog/YYYY/MM/DD/slug/" _site/sitemap.xml

If SCSS changed, compile the served stylesheet:

bundle exec sass --sourcemap=auto css/main.scss css/main.css

Then rebuild. Always commit the compiled css/main.css when SCSS changes.

8. Commit, push, and open a pull request

Use an English commit message with the issue number:

docs: add custom SF Symbols article (#13)

Push the branch and open a PR against main. The PR body should include:

After the PR check finishes, comment on the issue with:

9. Definition of done

Adding a page or tool

Local preview

bundle exec jekyll serve --future

Open http://127.0.0.1:4000/. Use the language switch to verify both versions. Future-dated posts require --future; without it they will not appear.