From 9486188983097302e055a6109f8c5fb66341a6bb Mon Sep 17 00:00:00 2001 From: Marcos Paulo Date: Sun, 6 Sep 2026 00:26:21 +0000 Subject: [PATCH] fix(full-guide): restore Portuguese guide copy --- src/components/islands/CopyPrompt.astro | 3 +- src/pages/full-guide.astro | 179 ++++++++++++++++++------ 2 files changed, 142 insertions(+), 40 deletions(-) diff --git a/src/components/islands/CopyPrompt.astro b/src/components/islands/CopyPrompt.astro index 5d49f74..be52ea4 100644 --- a/src/components/islands/CopyPrompt.astro +++ b/src/components/islands/CopyPrompt.astro @@ -121,7 +121,8 @@ const { target } = Astro.props; if (!id) return; const target = document.querySelector('#' + id); if (!target) return; - const value = target.textContent || ''; + const visible = target.querySelector(':scope > [data-language-content]:not([hidden])'); + const value = visible?.textContent || target.textContent || ''; if ( typeof navigator !== 'undefined' && diff --git a/src/pages/full-guide.astro b/src/pages/full-guide.astro index f34ecf1..3d1c1ed 100644 --- a/src/pages/full-guide.astro +++ b/src/pages/full-guide.astro @@ -260,7 +260,7 @@ const base = import.meta.env.BASE_URL; @@ -443,7 +443,8 @@ const base = import.meta.env.BASE_URL; data-language-content="pt" hidden>Clique em uma fase.
Veja a passagem. -

+ +

Delegation means moving one bounded task into a smaller context—not giving away responsibility.

- Skills + Skills

Write the right way
once.
Uma skill é um procedimento reutilizável. Ela pode carregar instruções, referências, scripts e assets. Não é memória mágica e não substitui critérios de aceitação. +

01 / trigger clearly

The skill forge + hidden>A forja de skills

Teach the decision.
Keep the context light.
+ >Ensine a decisão.
Mantenha o contexto leve.

+ resultados repetidamente e prove que a skill muda o comportamento.

- INSTALL PACKAsk your coding agent to verify, install, and validate the skills.INSTALL PACKAsk your coding agent to verify, install, and validate the skills.
-
{install.en}
- Review every source before installation. Existing local skills must be preserved. +
{install.en}
+ Review every source before installation. Existing local skills must be preserved.
-

Tiny Tasks lab

- Same task.
Better operating system. +

+ Tiny Tasks lab +

+ Same task.
Better operating system.

-

+

Start with a deliberately incomplete static task board. Run one prompt as written, reset, then run the skill-enabled version. Compare diff size, verification evidence, and unnecessary complexity. +

@@ -1091,24 +1161,45 @@ const base = import.meta.env.BASE_URL; STACK HTML · CSS · JavaScript DEPENDENCIES none FILES 3 + >STACK HTML · CSS · JavaScript DEPENDÊNCIAS nenhuma ARQUIVOS 3
-
RUN AGood prompt
-
{handsOn.en.basic}
- Clear context · constraints · acceptance · evidence +
+ RUN AGood prompt +
+
{handsOn.en.basic}
+ Clear context · constraints · acceptance · evidence
-
RUN BGood prompt + skills
-
{handsOn.en.skills}
- Same contract · explicit working methods · stronger proof +
+ RUN BGood prompt + skills +
+
{handsOn.en.skills}
+ Same contract · explicit working methods · stronger proof
@@ -1121,22 +1212,26 @@ const base = import.meta.env.BASE_URL; 01 Files changed + hidden>Arquivos alterados
02 New dependencies + hidden>Novas dependências
03 Checks actually run + hidden>Checks executados
04 Evidence returned + hidden>Evidências retornadas

@@ -1246,10 +1341,16 @@ const base = import.meta.env.BASE_URL; >Path B · rules lab

Toggle every rule off, run the prompt. Toggle every rule on, run it again. Compare diff size, gate invocations, and the names of checks the agent names back. -

Open the starter →Open the rules lab →Clone ↗ git.marcospaulo.dev.br/.../src/branch/pages/hands-on/rules + >