Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d1d75b616 | ||
|
|
5de4ad68b6 |
No files matched your search
@@ -11,3 +11,9 @@ Location: `.agents/skills/write_documentation/SKILL.md`
|
||||
Guidelines for collecting and recording evidence.
|
||||
|
||||
Location: `.agents/skills/record_evidence/SKILL.md`
|
||||
|
||||
## Review Findings
|
||||
|
||||
Interactive verification of evidence comprehension and epistemic discipline.
|
||||
|
||||
Location: `.agents/skills/review_findings/SKILL.md`
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
name: review-findings
|
||||
description: >-
|
||||
Interactive verification of evidence comprehension and epistemic discipline
|
||||
before proceeding with discovery, modeling, or solutions.
|
||||
---
|
||||
|
||||
# Review Findings
|
||||
|
||||
## Use when
|
||||
- A cycle of evidence collection has finished and requires human verification.
|
||||
- Testing comprehension of facts, boundaries, and unknowns in `evidence/`.
|
||||
- Not for collecting raw data or writing new evidence (use `record_evidence`).
|
||||
- Not for formatting general documentation (use `write_documentation`).
|
||||
|
||||
## Steps
|
||||
1. **Select target evidence.** Read the requested evidence files under `evidence/`. If none is specified, prompt the researcher to pick one.
|
||||
2. **Conduct the 5-phase review.** Formulate one question at a time in Spanish following `references/archetypes.md`:
|
||||
- Phase 1: Factual recall (verify what was observed).
|
||||
- Phase 2: Epistemic distinction (separate direct evidence from inference).
|
||||
- Phase 3: Interpretation bounds (bound implications without unevidenced leaps).
|
||||
- Phase 4: Unknowns and gaps (identify required missing data).
|
||||
- Phase 5: Transfer or misconception (test reasoning against a counterexample or flawed claim).
|
||||
3. **Wait for response.** Never disclose answers, hints, or options that give away the conclusion before the researcher responds.
|
||||
4. **Evaluate and provide feedback.** Assess the response strictly against the cited observation records (`OBS-xxx`):
|
||||
- Highlight whether the response respects the scope of the inspection.
|
||||
- Point out unevidenced assumptions or conflation of absence of evidence with evidence of absence.
|
||||
5. **Calibrate.** If the response is weak or shows misconception, probe with a simpler contrast. If solid, present a subtler transfer scenario.
|
||||
6. **Conclude review.** Summarize verified facts, confirmed boundaries, and open questions that warrant further investigation. Do not modify evidence files.
|
||||
|
||||
## Your call
|
||||
- Which evidence document or topic to review (step 1).
|
||||
- Whether to conclude the session early or probe additional areas.
|
||||
|
||||
## Done when
|
||||
- The researcher has addressed the five question phases for the chosen evidence set and the review summary is delivered.
|
||||
|
||||
## Hands off to
|
||||
- `record_evidence`: if the review reveals unrecorded observations or flawed evidence records.
|
||||
- Next research or analysis phase: once comprehension and boundaries are confirmed.
|
||||
@@ -0,0 +1,59 @@
|
||||
# Question Archetypes and Evaluation Rubric
|
||||
|
||||
Reference guide for conducting interactive evidence review sessions.
|
||||
|
||||
## 1. Factual Recall (Recuerdo Fáctico)
|
||||
|
||||
- **Objective:** Verify that the researcher recalls what was directly observed without adding embellishments.
|
||||
- **Question structure:** Prompt the researcher to describe the direct observation recorded under an observation ID or domain area.
|
||||
- **Example:**
|
||||
> ¿Qué evidencia concreta tenemos registrada sobre la plataforma técnica y servidor que sirven el sitio de AMC?
|
||||
- **Evaluation criteria:**
|
||||
- Valid: Cites specific recorded evidence (Apache, PHP 8.2.34, WordPress 7.1.3, theme Blogus).
|
||||
- Flawed: Adds unverified assumptions (e.g. "corren sobre Ubuntu/Linux", "usan Nginx de proxy") not found in raw headers.
|
||||
|
||||
## 2. Epistemic Distinction (Distinción Epistémica)
|
||||
|
||||
- **Objective:** Test ability to separate direct observations from plausible but unsupported inferences.
|
||||
- **Question structure:** Multiple-choice or statement contrast asking which claim is directly supported by evidence.
|
||||
- **Example:**
|
||||
> ¿Cuál de las siguientes afirmaciones está respaldada directamente por la evidencia registrada?
|
||||
> A. El sitio opera en una arquitectura LAMP administrada por AMC.
|
||||
> B. La respuesta HTTP expone Apache y PHP 8.2.34 y el HTML declara WordPress 7.1.3.
|
||||
> C. AMC utiliza MySQL como base de datos en un servidor Linux.
|
||||
> D. El servidor web fue configurado para producción por un desarrollador externo.
|
||||
- **Evaluation criteria:**
|
||||
- Valid: Selects B. Explains that Linux, MySQL, LAMP, and administrative ownership are unobserved inferences.
|
||||
- Flawed: Confounds common technology stacks (LAMP) with empirically measured components.
|
||||
|
||||
## 3. Interpretation Bounds (Límites de Interpretación)
|
||||
|
||||
- **Objective:** Test whether the researcher can derive implications without overstepping observational boundaries.
|
||||
- **Question structure:** Present an observation and ask what can be reasonably deduced and what cannot.
|
||||
- **Example:**
|
||||
> El inventario registró cinco enlaces de servicios bajo la ruta `/servicios-*`. ¿Qué podemos deducir razonablemente sobre la oferta comercial y qué NO podemos afirmar todavía?
|
||||
- **Evaluation criteria:**
|
||||
- Valid: Deduce that the site structure highlights five specific service URLs; recognize that we cannot claim these are all the services AMC offers or that they represent their main source of revenue.
|
||||
- Flawed: Concludes that AMC only offers five services in real life, or assigns editorial intent without evidence.
|
||||
|
||||
## 4. Unknowns and Gaps (Identificación de Vacíos)
|
||||
|
||||
- **Objective:** Identify what data, tools, or access are missing to answer a technical or business question.
|
||||
- **Question structure:** Ask what information would be required to validate a specific hypothesis or operational reality.
|
||||
- **Example:**
|
||||
> ¿Qué información necesitaríamos para determinar si AMC realmente capta clientes potenciales a través del sitio web?
|
||||
- **Evaluation criteria:**
|
||||
- Valid: Identifies specific sources: Search Console, analytics logs, server access logs, CRM/inbox inquiry records, interviews with AMC.
|
||||
- Flawed: Treats public HTML inspection as sufficient to answer business conversion questions.
|
||||
|
||||
## 5. Transfer and Misconceptions (Transferencia y Detección de Sesgos)
|
||||
|
||||
- **Objective:** Apply epistemic discipline to a novel scenario or detect the methodological error in a tempting conclusion.
|
||||
- **Question structure:**
|
||||
- *Misconception mode:* Present a flawed conclusion and ask to identify the methodological error.
|
||||
> ¿Cuál es el error epistémico en la afirmación: "AMC no tiene Google Analytics configurado porque no encontramos gtag.js en el HTML de la portada"?
|
||||
- *Transfer mode:* Apply the same logic to a different case.
|
||||
> Si una inspección no encuentra enlaces `mailto:` en la portada inspeccionada, ¿es válido concluir que la empresa no publica un correo electrónico de contacto?
|
||||
- **Evaluation criteria:**
|
||||
- Valid: Explains that negative findings are strictly bounded to the inspected artifact and sample. Analytics could be managed server-side, on subdomains, or via GTM in other pages; email could appear as plaintext, image, or in inner pages (`/contacto`).
|
||||
- Flawed: Confuses lack of observation with proof of absence.
|
||||
@@ -14,6 +14,15 @@ Scripts de auditoría técnica para recopilar evidencia sobre la presencia digit
|
||||
- **Minimalismo instrumental:** Priorizar biblioteca estándar de Python y utilidades de sistema (`curl`, `openssl`, `dig`) antes de introducir dependencias externas.
|
||||
- **Aislamiento de estado:** Los volcados crudos residen en `tools/raw/` y no deben mezclarse con las notas en Markdown ni comprometerse en Git.
|
||||
|
||||
## Herramientas Disponibles
|
||||
|
||||
### `inspect_site.py`
|
||||
|
||||
Script autónomo para reconocimiento HTTP inicial, detección de CMS, metadatos y extracción de grafos de enlaces. Produce un volcado estructurado bajo `tools/raw/<timestamp>/` con `headers.txt`, `homepage.html`, `robots.txt`, `sitemap.xml`, `metadata.json`, `links.json` y `summary.json`.
|
||||
|
||||
- **Uso:** `python tools/inspect_site.py [URL_DESTINO]`
|
||||
- **Diagramas de flujo y arquitectura:** Consultar [inspect_site_flow.md](inspect_site_flow.md) para el diagrama de flujo lógico y el diagrama de secuencia temporal.
|
||||
|
||||
## Entorno y Validación de Código
|
||||
|
||||
El entorno y las herramientas de validación se gestionan con `uv` dentro de `tools/`.
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
# Flujo de Ejecución — `inspect_site.py`
|
||||
|
||||
Documentación visual y diagramas de arquitectura del script de reconocimiento técnico [tools/inspect_site.py](inspect_site.py).
|
||||
|
||||
---
|
||||
|
||||
## 1. Diagrama de Flujo Lógico
|
||||
|
||||
Describe la secuencia de control, la gestión de parámetros y las bifurcaciones de error:
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
Start(["Inicio: Ejecutar inspect_site.py"]) --> TargetSetup{"Configurar URL de destino"}
|
||||
|
||||
subgraph Inputs ["Entrada"]
|
||||
TargetSetup -->|"URL Proporcionada"| ArgURL["Argumento CLI"]
|
||||
TargetSetup -->|"Sin argumento"| DefaultURL["Default: amcsolutionscolombia.com"]
|
||||
end
|
||||
|
||||
DefaultURL --> InitRun
|
||||
ArgURL --> InitRun
|
||||
|
||||
InitRun["Inicializar ejecución: Crear directorio tools/raw/{timestamp}/"]
|
||||
|
||||
InitRun --> FetchHome["1. Ejecutar fetch_url sobre URL Final"]
|
||||
|
||||
subgraph Adquisicion ["Proceso de Adquisición HTTP"]
|
||||
FetchHome -->|"Falla (Error o Excepción)"| HomeFail["Registrar error en headers.txt"]
|
||||
FetchHome -->|"Éxito (200 OK)"| HomeSuccess["Obtener Headers, Body HTML, Cadena de redirección"]
|
||||
end
|
||||
|
||||
HomeSuccess --> SaveHome["Guardar homepage.html"]
|
||||
HomeSuccess --> SaveHeader["Guardar headers.txt"]
|
||||
HomeFail --> SaveHeader
|
||||
|
||||
SaveHeader --> FetchRobots["2. Ejecutar fetch_url sobre /robots.txt"]
|
||||
FetchRobots --> SaveRobots["Guardar robots.txt"]
|
||||
|
||||
SaveRobots --> FetchSitemap["3. Ejecutar fetch_url sobre /sitemap.xml"]
|
||||
FetchSitemap --> SaveSitemap["Guardar sitemap.xml"]
|
||||
|
||||
subgraph Analisis ["Proceso de Análisis y Artefactos"]
|
||||
SaveSitemap --> ParseMeta["4. parse_html_metadata sobre HTML"]
|
||||
ParseMeta --> IdentifyCMS{"Detectar CMS y Señales"}
|
||||
IdentifyCMS -->|"WordPress, Wix, etc."| LogCMS["Registrar CMS en Metadatos"]
|
||||
IdentifyCMS -->|"Ninguno"| ExtractContent["Extraer Título, Descripción, Canónica, OG, Twitter, H1-H3, JSON-LD"]
|
||||
LogCMS --> ExtractContent
|
||||
|
||||
ExtractContent --> SaveMeta["Guardar metadata.json"]
|
||||
|
||||
SaveMeta --> ExtractLinks["5. extract_links sobre HTML"]
|
||||
ExtractLinks --> ClassifyLinks{"Clasificar enlaces"}
|
||||
|
||||
ClassifyLinks --> IntL["Internos"]
|
||||
ClassifyLinks --> ExtL["Externos"]
|
||||
ClassifyLinks --> SocL["Sociales"]
|
||||
ClassifyLinks --> ConL["Contactos (tel y mailto)"]
|
||||
|
||||
IntL --> SaveLinks["Guardar links.json"]
|
||||
ExtL --> SaveLinks
|
||||
SocL --> SaveLinks
|
||||
ConL --> SaveLinks
|
||||
end
|
||||
|
||||
SaveLinks --> GenerateSummary["6. Generar summary.json: Recopilar métricas de ejecución"]
|
||||
GenerateSummary --> SaveSummary["Guardar summary.json"]
|
||||
|
||||
SaveSummary --> Finish(["Fin: Imprimir resumen de inspección y ruta de salida"])
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 2. Diagrama de Secuencia Temporal
|
||||
|
||||
Describe la interacción temporal entre el usuario, el interceptor de redirecciones, el servidor remoto y el sistema de archivos:
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
autonumber
|
||||
actor User as Usuario / CLI
|
||||
participant Script as Main Execution
|
||||
participant Fetch as fetch_url()
|
||||
participant Server as Target Website
|
||||
participant Tracker as RedirectTracker
|
||||
participant Parser as parse_html_metadata()
|
||||
participant Linker as extract_links()
|
||||
participant FS as File System
|
||||
|
||||
User->>Script: Ejecutar script (URL opcional)
|
||||
Script->>Script: Generar directorio único tools/raw/{timestamp}/
|
||||
Note right of Script: Destino local de volcados
|
||||
|
||||
Note over Script, Server: 1. Adquisición de Portada (Homepage)
|
||||
Script->>Fetch: fetch_url(target_url)
|
||||
Fetch->>Server: GET request (User-Agent Chrome)
|
||||
Server-->>Tracker: Redirecciones (301 / 302)
|
||||
Tracker-->>Fetch: Cadena de saltos
|
||||
Server-->>Fetch: Respuesta HTTP (Headers, Body)
|
||||
Fetch-->>Script: Objeto de respuesta
|
||||
|
||||
Script->>FS: Guardar headers.txt
|
||||
Script->>FS: Guardar homepage.html
|
||||
|
||||
Note over Script, Server: 2. Adquisición de robots.txt
|
||||
Script->>Fetch: fetch_url(final_url + "/robots.txt")
|
||||
Fetch-->>Script: Objeto de respuesta
|
||||
Script->>FS: Guardar robots.txt
|
||||
|
||||
Note over Script, Server: 3. Adquisición de sitemap.xml
|
||||
Script->>Fetch: fetch_url(final_url + "/sitemap.xml")
|
||||
Fetch-->>Script: Objeto de respuesta
|
||||
Script->>FS: Guardar sitemap.xml
|
||||
|
||||
Note over Script, Linker: 4. Análisis Estático y Extracción
|
||||
Script->>Parser: parse_html_metadata(html, final_url)
|
||||
Parser-->>Script: Diccionario de metadatos (CMS, OG, Twitter, H1-H3, JSON-LD)
|
||||
Script->>FS: Guardar metadata.json
|
||||
|
||||
Script->>Linker: extract_links(html, final_url)
|
||||
Linker-->>Script: Diccionario de enlaces (internos, externos, sociales, contactos)
|
||||
Script->>FS: Guardar links.json
|
||||
|
||||
Script->>FS: Consolidar y guardar summary.json
|
||||
Script-->>User: Imprimir resumen por consola con ruta de salida
|
||||
```
|
||||
Reference in new issue
Block a user