<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Skello Engineering on Medium]]></title>
        <description><![CDATA[Stories by Skello Engineering on Medium]]></description>
        <link>https://medium.com/@skello-engineering?source=rss-efeb9de2e10------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ta6So6amU_GZSBzmX1BKtg.jpeg</url>
            <title>Stories by Skello Engineering on Medium</title>
            <link>https://medium.com/@skello-engineering?source=rss-efeb9de2e10------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:52:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@skello-engineering/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The hard part of agent systems isn’t the agent]]></title>
            <link>https://medium.com/skello-engineering/the-hard-part-of-agent-systems-isnt-the-agent-fbbd77bd06f2?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbbd77bd06f2</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 16:14:40 GMT</pubDate>
            <atom:updated>2026-04-17T16:15:05.734Z</atom:updated>
            <content:encoded><![CDATA[<p>At Skello, Bug reports flow in from account managers, product managers, QA, and clients directly. Each ticket touches care, product, and engineering before anything gets fixed. We built BugPilot to handle the full lifecycle: triage, deduplicate, investigate, qualify, and, when confident, fix.</p><p>We built it knowing it would run unsupervised against dozens of production repositories. That constraint shaped every decision: four separate agent calls, each with its own tool permissions and timeout budget, and write access to Jira only in the final phase. The agent is capable, but the architecture is what makes it trustworthy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-KZ8MIcgJnzJzUBcvmKorA.png" /></figure><h3>The architecture: 4 agent calls, not 1</h3><p>BugPilot processes each ticket through 11 sequential phases, organized into four separate Claude Agent SDK calls and pure TypeScript in between.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ipy4ZL5gTCRtDh2mJEerAQ.png" /></figure><p><strong>Write isolation.</strong> Calls 1, 2, and 3 physically cannot modify Jira. The write tools don’t exist in their tool set; they’re filtered at the adapter level before the call starts. Only Call 4 has jira_add_comment and jira_update_labels. This isn&#39;t a prompt instruction (&quot;please don&#39;t write to Jira yet&quot;). It&#39;s a code constraint. The agent can&#39;t do what it doesn&#39;t have tools for.</p><p><strong>Per-call model selection.</strong> Triage is a classification task; Sonnet handles it well at a fraction of the cost. Investigation requires deep code reasoning across multiple repositories; that’s Opus. Each call uses the model that fits the job.</p><p><strong>Independent failure domains.</strong> If investigation times out after 15 minutes, the triage and dedup results are already checkpointed. The pipeline doesn’t lose work.</p><p><strong>Enrichment without tokens.</strong> The Sentry, Datadog, and Notion queries aren’t agent calls at all. Querying an error tracking API doesn’t need an LLM; it needs a fetch call with the right parameters. These run as pure TypeScript in parallel. No tokens spent.</p><p>Here’s the simplified structure of how the four calls are wired:</p><pre>// Each call gets its own model, tools, and timeout<br>const calls = [<br>  {<br>    name: &quot;triage&quot;,<br>    model: &quot;claude-sonnet-4-6&quot;,<br>    tools: [jiraReadTools, checkpointTool],    // no write tools<br>    timeout: 3 * 60_000,<br>    phases: [&quot;fetch&quot;, &quot;triage&quot;, &quot;deduplicate&quot;],<br>  },<br>  {<br>    name: &quot;investigate&quot;,<br>    model: &quot;claude-opus-4-6&quot;,<br>    tools: [jiraReadTools, gitTools, checkpointTool],<br>    timeout: 15 * 60_000,<br>    phases: [&quot;route&quot;, &quot;investigate&quot;, &quot;qualify&quot;],<br>  },<br>  {<br>    name: &quot;fix&quot;,<br>    model: &quot;claude-opus-4-6&quot;,<br>    tools: [bashTool, readTool, editTool, checkpointTool],<br>    timeout: 15 * 60_000,<br>    phases: [&quot;fix&quot;],<br>  },<br>  {<br>    name: &quot;act&quot;,<br>    model: &quot;claude-sonnet-4-6&quot;,<br>    tools: [jiraReadTools, jiraWriteTools, checkpointTool],  // write tools here only<br>    timeout: 2 * 60_000,<br>    phases: [&quot;act&quot;],<br>  },<br>];</pre><pre>for (const call of calls) {<br>  const result = await withCallTimeout(<br>    () =&gt; agent.query({ model: call.model, tools: call.tools, prompt }),<br>    call.timeout<br>  );<br>  checkpoint(result);  // persist before moving on<br>}</pre><p>The key: jiraWriteTools only appears in the last call. The agent literally cannot write to Jira in any other phase. Not a prompt constraint, a code constraint.</p><h3>From ticket to draft PR</h3><p>The fix phase is where the system goes from analysis to action.</p><p>When the investigation phase identifies a confirmed bug with sufficient confidence, the fix agent kicks in with a 9-step workflow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5U1ZoBlg_B1cELqFFuzL6g.png" /></figure><p>Forcing the agent to prove the fix works by writing a test that would have caught the original bug improves fix quality significantly. If the agent can’t write a test for its fix, it probably doesn’t understand the bug well enough. The self-review loop (step 7) gives the agent up to 3 rounds to catch its own mistakes before pushing.</p><h3>Specialized agents per repo type</h3><p>Skello’s stack spans a Rails 6 monolith, a Vue 2 frontend, and dozens of TypeScript and Rails microservices. Each repo type gets a specialized agent:</p><pre>agents: {<br>  &quot;rails-monolith-explorer&quot;: {<br>    description: &quot;Expert agent for Rails 6 monolith codebases&quot;,<br>    prompt: &quot;You are a Rails 6 monolith expert. Investigate bugs by tracing models, services, controllers...&quot;,<br>    tools: [&quot;Read&quot;, &quot;Glob&quot;, &quot;Grep&quot;],<br>    repos: [&quot;skello-app&quot;],<br>    baseBranch: &quot;staging&quot;,<br>    setupCommand: &quot;bundle install --jobs 4&quot;,<br>    lintCommand: &quot;bundle exec rubocop --force-exclusion&quot;,<br>    testCommand: &quot;bundle exec rspec&quot;,<br>    conventions: &quot;Use Mocha for mocking (stubs/expects), NOT RSpec mocks...&quot;,<br>  },<br>  // + vue2-explorer, typescript-lambda-explorer, rails-microservice-explorer, code-explorer<br>}</pre><p>Each agent carries its full toolchain: setup, lint, test commands, and coding conventions. The conventions field is the secret weapon; injecting &quot;use Mocha, not RSpec mocks&quot; prevents the most common agent mistakes. The same config flows into the fix phase, so the fix agent inherits the right tools and patterns without duplication.</p><p>The system produces PRs across the entire stack, each following the conventions a human reviewer would expect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vw4MJebmDW8DtyyMNvhdOA.png" /></figure><h3>Where the agent falls short</h3><p>The fix agent is good at fixing <em>technical</em> symptoms. It’s less good at understanding <em>product</em> intent.</p><p>A real example: a notification email was being sent with an empty body due to a rendering error. The agent’s fix removed the error and sent the email with a blank body. Technically correct, no more error. But the right fix was to not send the email at all until the body could be rendered properly. This is why every PR is a draft: a human reviews, brings the product context, and adjusts.</p><h3>Production resilience</h3><p>Running this pipeline exposed every failure mode you’d expect from a distributed system, plus a few specific to agent SDKs.</p><h3>Timeouts and retries</h3><p>Layer Scope Timeout Recovery HTTP Every fetch call (Jira, Sentry, Datadog, Notion) 30s Retry with exponential backoff, respect Retry-After Agent call SDK query() per call 3–15 min Checkpoint before each call, resume on failure Enrichment Sentry + Datadog + Notion (parallel) 3 min Skip gracefully, investigate without enrichment</p><h3>The ghost PR problem</h3><p>The Agent SDK’s query() call cannot be cancelled. If the fix agent is mid-git push when the timeout fires, the push completes in the background, and you end up with an orphan branch and a draft PR that nobody requested. We log these as warnings. Every team running write operations through agent SDKs will hit this.</p><h3>Isolation and secrets</h3><p>Each ticket runs in its own error boundary with its own checkpoint state. Failed runs resume from the last checkpoint with — resume &lt;runId&gt;. A configurable cost cap stops processing when cumulative spend exceeds the threshold.</p><p>Git authentication uses GIT_ASKPASS (token on demand, nothing on disk). Child processes receive only minimal env vars. All logs pass through a redaction layer that strips bearer tokens, API keys, and long hex strings before anything hits stdout.</p><h3>Taming agent output</h3><p>Each phase ends with a phase_checkpoint tool call. A Zod schema (a runtime type validator) validates the output shape; when invalid, the errors are returned as the tool’s response so the agent self-corrects on its next turn. A normalization layer handles the rest: coercing types, converting key formats, stringifying nested objects. LLMs are creative; the agent returns decision or triage or triageDecision for the same field. The checkpoint catches it.</p><h3>Results</h3><p>Ballpark figures from running the pipeline in production:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEN7XrnTcOszY0IPmWmzDA.png" /></figure><p>Metric Value Note Cost (duplicate) ~$0.50 Triage + dedup only, Sonnet Cost (investigation) ~$2–4 + Opus for code reasoning Cost (investigation + fix) ~$5–8 + Opus fix call with git ops Time per ticket &lt; 2 min to 15 min Triage fast, complex investigations longer</p><p>Triage is the biggest win: every ticket gets an instant structured decision in under two minutes. Duplicates are caught semantically and handled as a fast path. Investigation gives engineers a head start, not a finished answer. Auto-fix produces draft PRs that are ready for review but need product judgment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPVshsmtn-fiGjNvj0YIjg.png" /></figure><p>The agent fixes the exception, not the experience. Every PR is a draft for this reason: a human brings the product context that the model can’t. The next bottleneck is no longer investigation. It’s review: getting the organization to absorb what the pipeline produces.</p><p><a href="https://www.linkedin.com/in/nicolas-di-giuseppe-6b9595a3/">Nicolas Di Giuseppe</a> — Engineering Manager — Skello Tech Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbbd77bd06f2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/the-hard-part-of-agent-systems-isnt-the-agent-fbbd77bd06f2">The hard part of agent systems isn’t the agent</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unboxing the AI: Scaling our Skello Assistant with LangChain & MCP]]></title>
            <link>https://medium.com/skello-engineering/unboxing-the-ai-scaling-our-skello-assistant-with-langchain-mcp-9c776019c84a?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c776019c84a</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 09:10:38 GMT</pubDate>
            <atom:updated>2026-02-06T09:46:16.385Z</atom:updated>
            <content:encoded><![CDATA[<p>By <a href="https://www.linkedin.com/in/gianlucaricciardelli/">Gianluca Ricciardell</a>i, Staff AI Engineer — Skello Tech team</p><p>At Skello, we don’t just use AI to follow a trend; we use it to solve real operational headaches for our users. For the past year, I have been working on <strong>Skello Assistant</strong>, our conversational agent designed to help managers handle employees, contracts, and absences instantly.</p><p>We recently completed a major architectural transformation: migrating from a managed <strong>AWS Bedrock Multi-Agent</strong> setup to a custom Agent with <strong>LangChain</strong> powered by the <strong>Model Context Protocol (MCP)</strong>.</p><p>Building on our initial success, we’ve evolved our architecture to unlock even more modularity and scale through a new tool-centric approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-acVdsPvJo15GAEeugOWTg.png" /></figure><h3>The first version</h3><p>To kickstart our journey, we leveraged <strong>AWS Bedrock Agents</strong>. This was a strategic choice that allowed us to ship fast and validate our multi-agent vision with dedicated agents for Employees, Contracts, and Absences.</p><p>As our use cases grew in complexity, we reached a stage where we needed <strong>finer-grained control</strong> over the orchestration. To further optimize latency and handle complex, cross-domain queries with even more precision, we decided to build upon the robust AWS foundation by implementing our own orchestration layer. By taking ownership of the logic, we’ve been able to streamline the ‘hand-offs’ between tools, ensuring maximum pertinence for our users as we scale to the next level.</p><h3>Orchestration with LangChain &amp; MCP</h3><p>We decided to “unbox” our AI. We kept <strong>AWS Bedrock</strong> for what it does best — providing the LLMs and <strong>Guardrails</strong> for security — but we moved the agentic logic to <strong>LangChain</strong>.</p><p>The game-changer for us was adopting the <strong>Model Context Protocol (MCP)</strong>, the open standard introduced by Anthropic.</p><p>Instead of rigid sub-agents, we now have a single, robust LangChain agent equipped with a suite of standardized MCP tools. This flattened architecture allows the LLM to select and combine tools dynamically based on the context, rather than relying on a brittle supervisor hierarchy.</p><h3>The “Complex Query” Win</h3><p>The difference is night and day for complex, cross-domain queries.</p><p>Take this request:</p><blockquote><em>“Show me all absences for employees currently in CDI (permanent contract).”</em></blockquote><ul><li><strong>In V1 (Multi-Agent approach):</strong> The workflow relied on high-level coordination where a Supervisor orchestrated the dialogue between a specialized Contract Agent and an Absence Agent. This was a great way to decouple domains initially, but the sequential hand-offs between agents added steps to the process as we scaled.</li><li><strong>In V2 (LangChain + MCP):</strong> We’ve streamlined this into a single, fluid “Chain of Thought.” The agent now has direct access to both tools within the same context. It intelligently calls the <strong>Contract Tool</strong> to filter the employees and immediately feeds those results into the <strong>Absence Tool</strong>. This flattened architecture significantly reduces overhead and ensures a more seamless response for our users.</li></ul><h3>Smart Engineering: Reusing the Backend in AWS Lambda</h3><p>A key success factor in this migration was our backend decoupling.</p><p>Behind the scenes, our tools are powered by <strong>AWS Lambda</strong> functions. Because we focused the migration on the <em>interface</em> (switching to MCP), we didn’t have to rewrite our business logic. We simply exposed our existing Lambdas as MCP-compatible tools.</p><p>This allowed us to upgrade the “brain” of the assistant without performing a rewrite of Skello Assistant.</p><h3>What’s Next?</h3><p>We have gained control and speed, but the technology moves fast. We currently rely on the LLM’s native context window and tool-calling capabilities. We aren’t using RAG (Retrieval-Augmented Generation), as we prefer to reassert our architectural choices frequently as models evolve.</p><p>The challenge now is managing context size as we add more tools, but with this new foundation, we are ready to scale up to the next challenge !</p><p><strong>Speaking of scale, unboxing the AI requires precise observability. Stay tuned for our next article, where we’ll dive into how we monitor, trace, and debug our agents using Langfuse.</strong></p><p>We are solving complex engineering problems at Skello. If you want to build the future of work management with us, check out our open positions. Most full stack developper position @Skello include IA work and we also published a new Staff IA positon !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c776019c84a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/unboxing-the-ai-scaling-our-skello-assistant-with-langchain-mcp-9c776019c84a">Unboxing the AI: Scaling our Skello Assistant with LangChain &amp; MCP</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Skello Tech Day #5]]></title>
            <link>https://medium.com/skello-engineering/skello-tech-day-5-aec46fdccfe9?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/aec46fdccfe9</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 05:54:25 GMT</pubDate>
            <atom:updated>2025-10-15T05:54:25.260Z</atom:updated>
            <content:encoded><![CDATA[<p>Mardi 30 Septembre — Tech Day, cinquième édition.</p><p>Cette fois, nous avons choisi d’illustrer une de nos valeurs d’entreprise “Have each other’s back”. Cette valeur prend ses fondations dans le collectif. Pour avoir un collectif solide, il faut se connaitre, connaitre et comprendre les métiers des autres Skellonautes pour pouvoir collaborer au mieux et construire ensemble le futur de Skello.</p><p>L’équipe tech s’est donc glissée dans la peau de l’équipe commerciale. Pendant une heure, répartis en 10 équipes, les tech ont appelé des prospects en essayant de leur pitcher Skello et de prendre le maximum de rendez vous.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xh3zuJscSiAz4w_Nyv5K6Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SR2DP1a1LWYnGSTENODGTQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8iCsBoYid_m-6H3nTK1Sw.jpeg" /></figure><p>Une vraie épreuve de force car la plupart des techs sont plus à l’aise avec un clavier sous les doigts, qu’un téléphone à la main.</p><p>Heureusement Jean Philippe, l’animateur du floor commercial était là pour nous donner tous les tips nécessaires pour que la conversation dure le maximum de temps avec les potentiels futurs clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g8eC96CWHl5i_lUAmRb8-Q.jpeg" /></figure><p>Bilan : 140 appels passés, un rendez vous pris et surtout avoir pu toucher du doigt le quotidien d’une autre équipe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0TydoeTD8lZB3ud7xXntg.jpeg" /></figure><p>L’après midi pour faire redescendre la pression, direction Go Park, nous avons pu faire 4 activités, où le collectif était également important.</p><p>Au menu, Air soft, Bubble foot, Combats de sumo et Rodéo mécanique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2AwCCb1VZReIzW9upmlljQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkaPc1rzVxw1tU3MGMb45w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4yCWj2MFY-m0jOrDrwlSwg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRLKuv-lNXYOxxjFGJNCqg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LADgArSEi_9AvohLffN7MA.jpeg" /></figure><p>Vivement le prochain Tech Day 😍</p><p><a href="https://www.linkedin.com/in/oliviercauvin/">Olivier</a><em>, </em>CTO — Skello Tech Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aec46fdccfe9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/skello-tech-day-5-aec46fdccfe9">Skello Tech Day #5</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Data Met Product: How We Turned LLM Data Into a Strategic Product Compass — In Just 3 Weeks]]></title>
            <link>https://medium.com/skello-engineering/when-data-met-product-how-we-turned-llm-data-into-a-strategic-product-compass-in-just-3-weeks-d4ffa90bd32e?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ffa90bd32e</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 08:53:35 GMT</pubDate>
            <atom:updated>2025-10-03T09:16:18.679Z</atom:updated>
            <content:encoded><![CDATA[<h3>When Data Met Product: How We Turned LLM Data Into a Strategic Product Compass — In Just 3 Weeks</h3><p><em>How a chat at the coffee machine turned into a strategic compass for Product, powered by an LLM and a simple dashboard.</em></p><p>Earlier this year, we launched the <a href="https://www.skello.io/blog/lassistant-skello-est-la-le-premier-agent-ia-pense-pour-les-equipes-terrain"><strong>Skello</strong> <strong>Assistant</strong></a>, our AI assistant for frontline teams. Its goal: make workforce data accessible in natural language so managers and HR admins <strong>save time</strong> and focus on <strong>people</strong>, not admin work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Sg12MhR9DzIuJifmJJIEg.png" /></figure><p>Adoption has been fast, with hundreds of questions asked every week. Each of these questions is a direct signal of what matters most to our customers. For us, it’s a unique opportunity to continuously sharpen the product.</p><p>But this process, previously manual and time-consuming for our Product Managers (PMs), was slowing down our understanding of our clients priority use cases. That’s what we were discussing during a well deserved break, how could we automate this analysis process quickly, while maintaining the high quality standards required for product decisions?</p><p>This article is a look back at the project, from its design to production in just three weeks, and how it evolved our Product and Data collaboration at Skello.</p><h3>The Project’s Genesis: From a painful GSheet to an industrialized solution in Three Weeks</h3><p>The starting point came from three core Product needs:</p><ol><li><strong>Roadmap prioritization</strong> — continuously analyzing user questions to identify and prioritize the next most impactful use cases.</li><li><strong>QA reliability</strong> — keeping our automated QA scripts in sync with reality, so they reflect both what users ask and how they phrase it.</li><li><strong>Product speccing</strong> — capturing the full spectrum of user questions for each use case, and using them as inputs when writing functional specifications.</li></ol><p>The existing method, based on manual spreadsheet analysis, was too slow and not scalable.</p><p>Rapid execution was a key factor in this project. By taking an iterative approach, we were able to deliver value very quickly in close collaboration with the Product team.</p><ul><li><strong>Day 1: Identifying the Need</strong> It all started with a discussion with the Product Managers. They laid out their challenge: a manual, time-consuming process for analyzing user questions. We immediately identified an opportunity for automation using an LLM.</li><li><strong>Week 1: The Proof of Concept (PoC)</strong> The first week was dedicated to validating the core hypothesis. A prototype was developed to test an LLM’s ability to classify a sample of questions against the topics defined in <strong>Notion</strong>. The results proved to be conclusive and gave us the green light to proceed, highlighting the key advantage of LLM services: a speed of implementation that traditional ML approaches often can’t match.</li><li><strong>Week 2: Iteration and Industrialization</strong> Once the concept was validated, the team focused on improving accuracy and integrating the solution. The LLM prompt was refined to better handle edge cases. <strong>This iteration phase was a truly collaborative effort: both the Data and Product teams analyzed the results in parallel, each identifying examples of classifications that needed to be fixed.</strong> This process allowed us to very quickly improve the model’s relevance, while in parallel, the PoC script was transformed into a robust data pipeline (Apache Airflow, AWS Bedrock).</li><li><strong>Week 3: Refining the Logic and Delivering Value</strong> The final week was dedicated to two key elements:</li></ul><ol><li><strong>Handling Follow-up Questions:</strong> We refined the logic to take conversation history into account. This enhancement had a major impact: it allowed us to <strong>categorize 80% of the questions that we previously couldn’t classify</strong>.</li><li><strong>Dashboarding:</strong> In parallel, with the newly classified data available in Snowflake, the Product team was able to build a simple and effective dashboard in Looker, giving them direct, visual access to the trends.</li></ol><p>This speed of implementation is a key advantage of LLM services, <strong>especially in our international context.</strong> Where a traditional ML approach would have required weeks to develop and train a separate model for each language, the LLM handled multiple languages natively, which was a decisive accelerator for the project.</p><h3>Solution Architecture: A System Designed for Autonomy</h3><p>A key objective of the solution was to enable the Product team to manage it without depending on the Data team.</p><p>The diagram below illustrates the implemented architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RueB9MukprcZHernhKkZ4Q.png" /></figure><p>The data flow is as follows:</p><ol><li><strong>Data Centralization:</strong> Customer questions (from MongoDB) and reference topics (managed by PMs in Notion) are centralized in our <strong>Snowflake</strong> data warehouse.</li><li><strong>Orchestration:</strong> An <strong>Apache Airflow</strong> DAG extracts new questions from Snowflake to an S3 bucket.</li><li><strong>Classification Engine:</strong> Airflow invokes a language model on <strong>AWS Bedrock</strong> (specifically <strong>Claude 3.7 Sonnet</strong>). The model attempts to <em>match</em> the question with an existing topic or, failing that, to <em>propose</em> a new one.</li><li><strong>Delivery and Visualization:</strong> The labels are written back to Snowflake, and PMs can then visualize the results in a <strong>Looker</strong> dashboard.</li><li><strong>Granting Access</strong>: We created a dedicated role for our PM team on Airflow to enable them to run the workflow at will after changing the topics in Notion</li></ol><h3>The Impact: Operational Gains and a Better Understanding of Usage</h3><ul><li><strong>Operational efficiency</strong> — 91% of questions are automatically classified, reducing analysis time from hours to just minutes.</li><li><strong>Faster discovery &amp; roadmap prioritization</strong> — hundreds of weekly questions analyzed in near real time, helping Product quickly spot high value use cases and prioritize the roadmap accordingly.</li><li><strong>Easier product speccing</strong> — PMs can now easily <strong>source and filter all the different types of user questions linked to a given use case</strong>. These real examples are then reused directly when writing specs</li><li><strong>Stronger QA &amp; evaluations</strong> — Our <strong>100+ automated QA tests</strong> are now continuously enriched with the way users <em>actually</em> phrase their questions. This keeps our evals more reliable, since they no longer test only “idealized” scenarios but mirror real production usage.</li><li><strong>Cross-team adoption</strong> — Both PMs and PMMs use the dashboard as a shared compass for prioritization and messaging, reducing reliance on anecdotes.</li></ul><h3>Key Takeaways: The Role of the Data Team</h3><p>This experience highlighted several guiding principles for our team:</p><ol><li><strong>Aim for Business Team Autonomy:</strong> Providing systems that other teams can manage themselves has a greater impact than producing one-off analyses.</li><li><strong>Use AI as an Accelerator:</strong> Services like AWS Bedrock allow our PMs to leverage usage data more effectively while maintaining strategic control.</li><li><strong>Analyze Usage to Guide the Product Roadmap:</strong> The Data team can help turn usage logs into a clear source of information to improve product decisions.</li></ol><p><a href="https://www.linkedin.com/in/audeclerc/">Aude Clerc</a> &amp; <a href="https://www.linkedin.com/in/edgar-h-66004b68/">Edgar Halbert</a> — Skello Tech &amp; Product Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ffa90bd32e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/when-data-met-product-how-we-turned-llm-data-into-a-strategic-product-compass-in-just-3-weeks-d4ffa90bd32e">When Data Met Product: How We Turned LLM Data Into a Strategic Product Compass — In Just 3 Weeks</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comment nous avons résolu nos problèmes de dépendances circulaires chez Skello]]></title>
            <link>https://medium.com/skello-engineering/comment-nous-avons-r%C3%A9solu-nos-probl%C3%A8mes-de-d%C3%A9pendances-circulaires-chez-skello-11bbd37e71ae?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/11bbd37e71ae</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 15:52:30 GMT</pubDate>
            <atom:updated>2025-10-02T15:52:30.986Z</atom:updated>
            <content:encoded><![CDATA[<p>Les dépendances circulaires sont un cauchemar récurrent dans les architectures complexes. Elles bloquent l’instantiation des services, rendent le code imprévisible et sont souvent le signe d’une architecture mal conçue. Voici comment nous les avons éliminées chez Skello.</p><h3>Qu’est-ce qu’une dépendance circulaire ?</h3><p>Une dépendance circulaire survient lorsque deux ou plusieurs modules/classes s’appuient mutuellement les uns sur les autres, créant une boucle dans le graphe de dépendances. Le module A a besoin du module B, qui a besoin du module C, qui a besoin du module A. Cette situation rend impossible l’initialisation de l’un sans l’autre.</p><h3>Exemple simple</h3><pre>class UserService {<br>  constructor(private orderService: OrderService) {}<br>}<br>class OrderService {<br>  constructor(private userService: UserService) {} *// ❌ Boucle !*<br>}</pre><p><strong>Problème</strong> : Pour créer UserService, on a besoin d&#39;OrderService. Mais pour créer OrderService, on a besoin d&#39;UserService.</p><h3>Notre cas chez Skello</h3><h3>Le workflow des demandes de congés</h3><ol><li><strong>Employé crée une demande</strong> → LeaveRequestManager</li><li><strong>Manager reçoit un email</strong> → LeaveRequestEmailManager</li><li><strong>Manager accepte/refuse</strong> → LeaveRequestManager</li><li><strong>Employé reçoit un email</strong> → LeaveRequestEmailManager</li></ol><h3>Le problème</h3><pre>LeaveRequestManager → LeaveRequestEmailManager → LeaveRequestManager</pre><p><strong>Résultat</strong> : impossible de compiler le code !</p><h3>La solution : injection de dépendances</h3><h3>Principe</h3><p><strong>Au lieu de créer directement les dépendances dans chaque classe, on les injecte depuis un point central.</strong></p><h3>Notre approche</h3><pre>class LeaveRequestManager {<br>  constructor(<br>    private repository: LeaveRequestRepository, // Injection depuis le container<br>    private emailManager: LeaveRequestEmailManager // Injection depuis le container<br>  ) {}<br>}<br>class LeaveRequestEmailManager {<br>  constructor(<br>    private leaveRequestRepository: LeaveRequestRepository, // Injection depuis le container<br>    private emailRepository: EmailRepository // Injection depuis le container<br>  ) {}</pre><p><strong>La clé</strong> : aucune classe ne crée ses propres dépendances. Tout est fourni par le container centralisé.</p><h3>Container centralisé</h3><p><strong>Un container centralisé (ou container d’injection de dépendances) est un système qui crée et connecte automatiquement les objets de votre application selon des règles que vous définissez une seule fois.</strong></p><p>Au lieu que chaque classe instancie manuellement ses dépendances avec des new Class() dispersés dans le code, le container s’occupe de les fournir au bon moment.</p><p>Cela garantit une architecture cohérente, modulable et plus facile à maintenir.</p><p>Le container peut également gérer le cycle de vie des objets, ce qui facilite le remplacement d’implémentations (par exemple pour les tests ou pour faire évoluer l’application).</p><h3>Notre container centralisé</h3><pre>export const initContainer = async (envVarsHelper: EnvVarsHelper, datasource: DataSource) =&gt; {<br>  *// 1. Services de base*<br>  const logger = logger;<br>  const entityManager = datasource.createEntityManager();<br><br>*// 2. Repositories*<br>  const leaveRequestRepository = new LeaveRequestRepository(entityManager);<br>  const emailRepository = new EmailRepository(svcCommunicationsV2Client);<br>  *// 3. Managers*<br>  const leaveRequestEmailManager = new LeaveRequestEmailManager(<br>    leaveRequestRepository,<br>    emailRepository<br>  );<br>  const leaveRequestManager = new LeaveRequestManager(<br>    leaveRequestRepository,<br>    leaveRequestEmailManag<br>  );<br>  return {<br>    leaveRequestManager,<br>    leaveRequestEmailManager,<br>  };<br>};</pre><p>On respecte l’ordre de création. On commence par les composants qui n’ont pas de dépendances, puis on remonte la chaîne.</p><h3>Exemples concrets</h3><h3>1. Création d’une demande de congé</h3><p><strong>Comment ça marche :</strong> Au lieu de créer les dépendances avec new, on les reçoit dans le constructeur. Le container s&#39;occupe de créer tous les objets et de les passer aux bonnes classes.</p><pre>export class LeaveRequestManager {<br>  public constructor(<br>    private readonly skelloAppManager: SkelloAppManager,<br>    private readonly leaveRequestRepository: LeaveRequestRepositoryInterface,<br>    private readonly leaveRequestEntityToModelTransformer: LeaveRequestEntityToModelTransformer,<br>    private readonly leaveRequestModelToEntityTransformer: LeaveRequestModelToEntityTransformer,<br>  ) {}<br>	async createLeaveRequest(dto: LeaveRequestCreateDto, currentUserId: string) {<br>	  *// 1. Création de la demande*<br>	  const leaveRequestModel = plainToInstance(LeaveRequestModel, {<br>	    id: uuid,<br>	    status: LeaveRequestStatusEnum.PENDING,<br>	    lastActionTakerId: currentUserId,<br>	    ...dto,<br>	  });<br>*// 2. Sauvegarder en base*<br>   const leaveRequestEntity = this.leaveRequestModelToEntityTransformer.transform(leaveRequestModel);<br>   const savedRequest = await this.leaveRequestRepository.createLeaveRequest(leaveRequestEntity);<br>   return savedRequest;<br> }<br>}</pre><h3>2. Gestion des emails</h3><p><strong>Le principe</strong> :</p><p>Cette classe a besoin de plusieurs services (repository, logger, transformer). Au lieu de les créer elle-même, elle les reçoit déjà prêts à l’emploi via le constructeur.</p><pre>class LeaveRequestEmailManager {<br>	public constructor(<br>	    protected leaveRequestRepository: LeaveRequestRepository,<br>	    protected employeeManager: EmployeeManager,              <br>	    protected emailRepository: EmailRepository,              <br>	    protected skelloBaseUrl: string,                         <br>	    protected logger: LambdaLoggerService,                   <br>	    private readonly leaveRequestEntityToModelTransformer: LeaveRequestEntityToModelTransformer,<br>	 ) {}<br>  async handleCreatedLeaveRequestsEmails(events: LeaveRequestEvent[]) {<br>    const leaveRequests = await this.getLeaveRequests(events.map(({id}) =&gt; id));<br><br>for (const leaveRequest of leaveRequests) {<br>      const payload = {<br>        acceptRequestUrl: this.getAcceptUrl(leaveRequest),<br>        employeeName: this.getName(leaveRequest.employee!),<br>        shopName: leaveRequest.shop!.name!,<br>        template: EmailTemplate.LEAVE_REQUEST_NEW,<br>      };<br>      await this.emailRepository.createHighPriority([{<br>        email: leaveRequest.receiver.email,<br>        payload,<br>        template: EmailTemplate.LEAVE_REQUEST_NEW<br>      }]);<br>    }<br>  }<br>}</pre><h3>Tests simplifiés</h3><pre>describe(&#39;LeaveRequestManager&#39;, () =&gt; {<br>  it(&#39;should create a leave request&#39;, async () =&gt; {<br>    *// Mocks*<br>    const mockRepository = {<br>      createLeaveRequest: jest.fn().mockResolvedValue(mockLeaveRequest)<br>    };<br>const mockEmailManager = {<br>      handleCreatedLeaveRequestsEmails: jest.fn()<br>    };<br>    *// Injection*<br>    const manager = new LeaveRequestManager(mockRepository, mockEmailManager);<br>    *// Test*<br>    const result = await manager.createLeaveRequest(dto, &#39;user-123&#39;);<br>    expect(result).toBeDefined();<br>    expect(mockRepository.createLeaveRequest).toHaveBeenCalledTimes(1);<br>  });<br>});</pre><h3>Bénéfices obtenus</h3><h3>✅ Code plus maintenable</h3><ul><li>Chaque classe a une responsabilité claire</li><li>Les dépendances sont explicites</li><li>Plus facile de comprendre le flux</li></ul><h3>✅ Tests plus fiables</h3><ul><li>On peut mocker facilement chaque dépendance</li><li>Tests plus rapides et plus stables</li><li>Plus de contorsions pour tester</li></ul><h3>✅ Évolutivité améliorée</h3><ul><li>Ajouter une nouvelle fonctionnalité ? Juste une nouvelle classe dans le container</li><li>Changer une implémentation ? On modifie juste le container</li><li>Pas de refactoring en cascade</li></ul><h3>✅ Moins de bugs</h3><ul><li>Plus d’erreurs de compilation mystérieuses</li><li>L’ordre d’initialisation est garanti</li><li>Les dépendances manquantes sont détectées à la compilation</li></ul><h3>En conclusion</h3><p>L’injection de dépendances nous a permis de résoudre définitivement nos problèmes de dépendances circulaires.</p><p>En centralisant la création des objets dans un container et en respectant un ordre logique d’initialisation, nous avons éliminé les blocages qui nous faisaient perdre du temps. Cette approche nous a aussi apporté des bénéfices, des tests plus simples à écrire, un code plus facile à faire évoluer, et une architecture plus claire pour toute l’équipe</p><p><a href="https://www.linkedin.com/in/antoine-m-56716b112/">Antoine Mailly</a> — Skello tech team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11bbd37e71ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/comment-nous-avons-r%C3%A9solu-nos-probl%C3%A8mes-de-d%C3%A9pendances-circulaires-chez-skello-11bbd37e71ae">Comment nous avons résolu nos problèmes de dépendances circulaires chez Skello</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arrêtez de perdre du temps : chassez vos bugs efficacement avec Git Bisect]]></title>
            <link>https://medium.com/skello-engineering/arr%C3%AAtez-de-perdre-du-temps-chassez-vos-bugs-efficacement-avec-git-bisect-0b788831dead?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b788831dead</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 12:15:56 GMT</pubDate>
            <atom:updated>2025-08-25T07:59:49.741Z</atom:updated>
            <content:encoded><![CDATA[<h3>Arrêtez de perdre du temps : chassez vos bugs efficacement avec Git Bisect</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gze1wE56RAq7BbrY8qL8Og.jpeg" /></figure><h3>Comment vous vous y prenez pour trouver l’origine d’un bug ?</h3><p>Bon évidemment, le premier réflexe lorsqu’un client remonte un bug est de pouvoir le reproduire et idéalement sur notre environnement local. Je dis idéalement car l’utilisation de Git Bisect nécessitera une reproduction locale mais pas de panique, tout le code suivant sera disponible dans un repo public sur lequel vous allez pouvoir vous exercer 🫶 !</p><p>Chez Skello, nous avons à coeur de résoudre les bugs que les clients nous remontent afin qu’ils puissent jouir d’une application fluide et sans accroc. Et soyons terre à terre, toutes les applications peuvent rencontrer des bugs alors n’ayez pas honte de le dire et ayons le courage et la maturité de proposer des solutions <strong>rapides</strong> et <strong>efficaces</strong> pour y remédier.</p><p>Je suis Engineering Manager mais je passe aussi la moitié de mon temps à développer, et à aussi résoudre des bugs. Pour les bugs assez simples, on sait toujours à peu près où se trouve le problème (et ce sera le cas de l’exercice pratique). Mais dans les cas un peu <strong>plus complexe</strong>, le code problématique est <em>tricky</em> à trouver et c’est là que Git Bisect devient la seule et unique solution si on veut être rapide et efficace.</p><h3>Git Bi-quoi ?</h3><p>Git Bisect est une commande Git permettant d’isoler le commit coupable d’un bug. Mais avant de rentrer dans l’explication de son fonctionnement, un peu de mathématique s’impose !</p><p>Pour votre santé mentale (et la mienne), je vous fais grâce des différents algorithmes de recherche qui existent pour vous partager seulement celui qui est utilisé par Git Bisect : la <strong>recherche par Dichotomie</strong> (ou Recherche dichotomique).</p><p>La recherche par Dichotomie consiste à diviser de façon répétée une liste triée en deux pour localiser rapidement une valeur recherchée.</p><p>Partons sur un petit jeu : donnez moi un nombre entre 1 et 100. C’est bon ? Vous l’avez ? Je suis sûr que vous avez choisi 62, hein ? L’algorithme de Dichotomie a besoin d’une liste <strong>triée</strong> (1, 2, 3, …, 100). Il est impératif que les éléments soient triés dans la liste.</p><p>Voici les étapes de recherche :</p><ul><li><strong>1ère itération :</strong></li><li>on regarde l’élément du milieu de la liste : <strong>50</strong></li><li>50 n’est pas l’élément recherché. <strong>62 est plus grand que 50</strong>, donc on élimine la moitié inférieure (1, 2, …, 50) et on <strong>garde la moitié supérieur</strong> (51, 52, …, 100)</li><li>et on recommence avec la nouvelle sous-liste</li><li><strong>2ème itération :</strong></li><li>on regarde l’élément du milieu de la liste : <strong>75</strong></li><li>75 n’est pas l’élément recherché. <strong>62 est plus petit que 75</strong>, donc on élimine la moitié supérieur (75, 76, …, 100) et on <strong>garde la moitié inférieur</strong> (51, 52, …, 74)</li><li>et on recommence avec la nouvelle sous-liste</li><li>3ème itération :</li><li>on regarde l’élément du milieu de la liste : <strong>62</strong></li><li>62 est l’élément recherché, bingo 🎉</li></ul><p><em>Note : si vous aussi jouiez devant votre écran de télé au Juste Prix avec cette méthode, bravo à vous !</em></p><h3>Cool tes maths mais maintenant what?</h3><p>Ok, maintenant qu’on a saisi le fonctionnement de la recherche par Dichotomie, parlons du fonctionnement de <strong>Git Bisect</strong>.</p><p>Pour utiliser cette commande, indiquons à Git que l’on souhaite trouver un commit fautif :</p><pre>$ git bisect start</pre><p>Ensuite, on lui indique un commit qui n’a pas le bug. Testez bien sûr le commit avant de lancer Git Bisect pour vous assurer qu’il n’a pas le bug, sinon remonter encore plus tôt dans l’historique.</p><pre>$ git bisect good &lt;sha_d_un_commit_non_bugué&gt;</pre><p>Puis Git va, par dichotomie, passer de commit en commit et c’est à nous, utilisateur, de vérifier ou non la présence du bug via l’application. Et pour se faire, on indiquera à Git si le commit sur lequel on est situé est <em>good</em> ou <em>bad</em>.</p><p>Parce <em>(qu’une image)</em> des lignes de commande valent mieux que 1000 mots, passons à la pratique !</p><h3>Chassons le bug ! 🐛</h3><h3>Méthode manuelle</h3><p>Le repository présenté ici est un utilitaire Node qui retourne la météo en fonction d’une ville et j’ai volontairement introduit un bug : la météo est toujours celle de Marseille.</p><p><em>Note : le bug introduit est hyper simple à retrouver dans le code. L’enjeu de cet exercice est de trouver le bug comme si nous n’avions pas accès aux lignes de code mais uniquement à l’historique Github. Et oui, dans la vraie vie, votre code ne comptera pas 100 lignes comme ici mais plutôt des dizaines voire des centaines de millier de lignes de code : focalisons nous sur le fort potentiel de Git Bisect.</em></p><p><strong>🛑 Si vous voulez tenter l’expérience vous même, cloner le repo, installer les dépendances et lancer l’utilitaire.</strong></p><pre>$ git clone git@github.com:skelloapp/git-bisect-tuto.git<br>$ cd git-bisect-tuto<br>$ nvm install lts/jod<br>$ nvm use<br>$ pnpm install<br>$ pnpm tsx src/index.ts --city=Marseille --forecastDays=14</pre><p><strong>Etape 0 : Reproduire le bug sur le dernier commit</strong></p><p>Voici mon historique</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1dEoEaJGA4BSMcHxR_VsDQ.png" /></figure><pre>$ git checkout a82cc81<br>Note: switching to &#39;a82cc81&#39;.<br>[...]<br>$ pnpm install <br>[...]<br>$ pnpm tsx src/index.ts --city=Paris</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WX-jTzjdwwF8dJ5OVPmw2g.png" /></figure><p><em>(Je sais, c’est stylé. Je me suis plus donné sur l’ascii art que sur le code ^^)</em></p><p>En effet le bug est bien présent ! Notez que j’ai réinstallé les dépendances car en naviguant de commit, il y a potentiellement eu des changements de dépendances !</p><p>Faisons une petite digression à ce sujet. Mettons que vous êtes développeur pour une solution SaaS de solution RH :D.</p><p>Chez Skello, nous avons une vingtaine de micro services, plusieurs bases de données, différentes bibliothèques npm, etc, et tout ça, en multirepo. La recherche du repository peut être fastidieuse si on a ZERO connaissance sur l’architecture de la plateforme. Fort heureusement, cela est assez rare et on a toujours une vague idée du scope du bug et cela nous permettra d’identifier le ou les quelques repo potentiellement fautif.</p><p>Mettons maintenant que l’on sait parfaitement quel est le repo coupable. Par exemple : un bug CSS : il y a de fortes chances que cela proviennent du repo front. Mais il se peut que le code CSS généré provienne d’une dépendance alors quand vous naviguez de commit en commit, n’oubliez jamais de setup le repo à date du commit :</p><ul><li>installation des dépendances</li><li>changement de version Node (ou tout autre language que vous utilisez)</li><li>migration de base de données</li><li>et certainement encore d’autre setup</li></ul><p><strong>Etape 1 : Identifier un commit </strong><strong>good, c’est à dire un commit sur lequel le bug ne se reproduit pas.</strong></p><p>Pour cela, plusieurs options s’offrent à nous :</p><ul><li>on sait que le bug n’était pas présent il y a une semaine : on checkout sur le commit en question et on vérifie que c’est bien le cas. Si c’est confirmé, on conserve le sha du commit pour la suite.</li><li>on a strictement aucune idée de quand le bug a été introduit : selon le volume de commit émis chaque semaine, soyez pragmatique et sautez de semaine en semaine ou de mois en mois jusqu’à identifier un commit sain</li><li>la dernière option : le premier commit qui a introduit la fonctionnalité. Un peu bourrin je l’admets mais tout aussi efficace dans notre cas. C’est l’option que l’on va choisir pour l’exemple : <strong>d87133d.</strong> Facile, c’est le premier commit du repo :D</li></ul><p>Etape importante pour ne pas induire Git en erreur : tester le commit</p><pre>$ git checkout d87133d<br>HEAD is now at d87133d [...]<br>$ pnpm install <br>[...]<br>$ pnpm tsx src/index.ts --city=Paris</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GUnVx6wAGl8XBqjoJ3wEvA.png" /></figure><p>💪 Super, c’est bien la météo de Paris ! Conservons le hash du commit pour la suite.</p><p><strong>Etape 2 : Démarrer l’instruction </strong><strong>git bisect</strong></p><pre>$ git bisect start<br>status: waiting for both good and bad commits</pre><p>On se retrouve dans un état “bisect”, un peu comme quand vous êtes en résolution de conflits lors d’un merge par exemple.</p><p><strong>Etape 3 : Fournir les bornes de la recherche à savoir un commit </strong><strong>good et un commit </strong><strong>bad.</strong></p><pre>$ git bisect good &lt;-- utilise le commit sur lequel vous êtes positionné, parfait dans notre cas car nous avons testé au préable<br>ou <br>$ git bisect good &lt;hash&gt; &lt;-- plus explicite<br> <br>status: waiting for bad commit, 1 good commit known</pre><p>Et maintenant un commit bad. Encore une fois, vous avez plusieurs options pour l’identifier mais celle que je recommande vivement, c’est l’option du dernier commit. Simple, efficace et en plus, on y a confirmé le bug !</p><pre>$ git bisect bad a82cc81<br>Bisecting: 3 revisions left to test after this (roughly 2 steps)<br>[e41f2a62916715606d29d90d724b5446fbcd8b4c] &lt;commit_message&gt;</pre><p>Parfait ! Git a navigué sur le commit e41f2a62916715606d29d90d724b5446fbcd8b4c. Si vous vous rappelez bien du principe de dichotomie, on constate que sur le groupe de 8 commits, représenté par le rectangle bleu, Git s’est positionné sur le 4ème commit, soit au milieu du groupe de recherche.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFlqK7wQGJmfXKCHn7ijEg.png" /></figure><p><em>Note : Notez que git indique approximativement le nombre d’étape potentiellement nécessaire à l’achievement de la recherche.</em></p><p><strong>Etape 4 : itérer sur les commits pour identifier le bug</strong></p><p>On a plus qu’à tester :</p><pre>$ pnpm install <br>[...]<br>$ pnpm tsx src/index.ts --city=Paris</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pg2rY-zN3_gSSiJkw9t8qg.png" /></figure><p>Le bug est présent ❌. Git attend qu’on lui indique si le commit sur lequel il s’est positionné est bon ou mauvais.</p><pre>$ git bisect bad <br>Bisecting: 0 revisions left to test after this (roughly 1 step)<br>[f389ddae87d3b639b781bd61da1fa68cc1c1159d] &lt;commit_message&gt;</pre><p>Git a de nouveau navigué sur un autre commit. Essayer de trouver quel commit il a choisi, cela permettra de valider l’acquis de connaissance de la recherche par dichotomie 🙂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKAsBaJ4XLs9zltG4WVisQ.png" /></figure><p>Git sait maintenant que le bug se situe dans ce sous groupe de commits (illustré par le rectangle bleu) et s’y place au milieu. D’ailleurs, une commande utile nous permet de connaître les commits toujours en lice (le rectangle bleu) : git bisect visualize. C&#39;est la même commande que git log (donc avec les même options comme --oneline) mais scopé uniquement aux éléments de recherche dichotomique restants, et non tout l’historique du repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMazIbPl66kcDc783gAnmA.png" /></figure><p>C’est reparti pour tester !</p><pre>$ pnpm install <br>[...]<br>$ pnpm tsx src/index.ts --city=Paris</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wjRnZjDfg9c9BqQipcZP-A.png" /></figure><p>Le bug est présent ❌. On prévient notre cher ami Git :</p><pre>$ git bisect bad <br>Bisecting: 0 revisions left to test after this (roughly 0 steps)<br>[cc38b33c5da490245a02bdf7244b9f30f69943e4] &lt;commit_message&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2Mt9N2aRVuhJvyUefq9VQ.png" /></figure><p>Et on re teste :</p><pre>$ pnpm install <br>[...]<br>$ pnpm tsx src/index.ts --city=Paris</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i3b8eR1B5zbXDUCuXb54iA.png" /></figure><p>On a dépassé le bug ! On se situe désormais sur un commit sain, indiquons le à Git :</p><pre>$ git bisect good <br>f389ddae87d3b639b781bd61da1fa68cc1c1159d is the first bad commit<br>[...]</pre><p>🎉 Git a trouvé le commit coupable du bug.</p><p><em>Note : Ce n’est pas arrivé parce que j’ai trouvé qu’un seul commit sain, c’est simplement parce qu’il n’y a qu’un seul commit entre un commit identifié comme </em><em>good et un commit identifié comme </em><em>bad. S’il y avait eu plusieurs commits entre les commits identifiés, on aurait encore identifié d’autres commits sain.</em></p><p>Vérifions que Git n’a pas un coup dans le nez en nous positionnant sur le commit en question avant de clotûrer la session bisect.</p><pre>$ git checkout f389ddae87d3b639b781bd61da1fa68cc1c1159d<br>Previous HEAD position was cc38b33 &lt;commit_message&gt;<br>HEAD is now at f389dda &lt;commit_message&gt;</pre><p>Et testons :</p><pre>$ pnpm install <br>[...]<br>$ pnpm tsx src/index.ts --city=Paris</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtrnlnGadlEeFIVrwhGopA.png" /></figure><p>Bravo, vous avez trouvé le commit fautif ! 😎</p><p>Pour sortir du mode bisect :</p><pre>$ git bisect reset</pre><p>💡 Et voici l’historique en clair :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNHcmTimQ78Uy51HGo83TQ.png" /></figure><p>Vous comprenez pourquoi c’était flouté ? 🙂 Et oui, cela aurait été moins marrant si vous saviez tout de suite !</p><h3>Méthode automatisée</h3><p>Pas toujours faisable mais dans les cas possibles, cette méthode est redoutable. Plus besoin de manuellement tester chaque itération de commits si on peut le déléguer à un script !</p><p>Git nous permet de prendre en entrée un script qui lui indiquera si oui ou non un commit est good ou bad.</p><pre>$ git bisect run &lt;cmd&gt; [&lt;arg&gt;...]</pre><p>Mais écrivons d’abord notre script :</p><pre>#!/bin/bash</pre><pre>output=$(pnpm tsx src/index.ts --city=Paris)</pre><pre>if echo &quot;$output&quot; | grep -q &quot;Paris, France&quot;; then<br>    exit 0<br>else<br>    exit 1<br>fi</pre><p>Surtout, ne le commitez pas ! Quand Git va naviguer de commit en commit, le fichier n’existera pas 😄. Cela posera un bug lors des itérations.</p><p>Et passons à la méthode automatisée :) Tout d’abord, tout comme la méthode manuelle, on doit lui indiquer les bornes de recherche, à savoir un commit good et un bad.</p><p><strong>Etape 1 : Fournir les bornes de la recherche à savoir un commit </strong><strong>good et un commit </strong><strong>bad.</strong></p><pre>$ git bisect start<br>status: waiting for both good and bad commits<br>$ git bisect bad a82cc81<br>status: waiting for good commit(s), bad commit known<br>$ git bisect good d87133d<br>Bisecting: 3 revisions left to test after this (roughly 2 steps)<br>[e41f2a62916715606d29d90d724b5446fbcd8b4c] chore: update dependencies</pre><p><strong>Etape 2 : Lancer la commande</strong></p><pre>$ git bisect run ./bug_or_not_to_bug.sh<br><br>running  &#39;./bug_or_not_to_bug.sh&#39;<br>Bisecting: 0 revisions left to test after this (roughly 1 step)<br>[f389ddae87d3b639b781bd61da1fa68cc1c1159d] ----&gt; BUG &lt;----<br>running  &#39;./bug_or_not_to_bug.sh&#39;<br>Bisecting: 0 revisions left to test after this (roughly 0 steps)<br>[cc38b33c5da490245a02bdf7244b9f30f69943e4] refactor: create error logger<br>running  &#39;./bug_or_not_to_bug.sh&#39;<br>f389ddae87d3b639b781bd61da1fa68cc1c1159d is the first bad commit<br>commit f389ddae87d3b639b781bd61da1fa68cc1c1159d<br>Author: younessadmi &lt;younes.sadmi@skello.io&gt;<br>Date:   Mon Aug 11 10:19:51 2025 +0200<br><br>----&gt; BUG &lt;----<br> src/index.ts | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br>bisect found first bad commit</pre><p>🥳 MAGIQUE !</p><h3>En conclusion : un bug traqué est un bug (presque) réparé</h3><p>Trouver l’origine d’un bug peut parfois ressembler à chercher une aiguille dans une botte de foin… mais avec <strong>Git Bisect</strong>, on remplace la botte de foin par une loupe de précision.</p><p>Cet outil, basé sur un algorithme aussi vieux qu’efficace (merci la dichotomie), permet d’éliminer les hypothèses une à une de manière structurée et rapide, sans avoir à scroller l’historique Git pendant des heures. Et une fois bien intégré dans votre boîte à outils, il devient un <strong>allié redoutable</strong> pour gagner du temps, gagner en fiabilité et surtout… en sérénité 🧘‍♂️.</p><p>Alors oui, Git Bisect demande un peu de rigueur (reproduire le bug, bien tester les commits, respecter le setup environnemental), mais c’est un investissement qui vous fera gagner un temps précieux, surtout dans des bases de code de plusieurs milliers de lignes.</p><p>Dernier conseil d’Engineering Manager : <strong>ne subissez pas les bugs, chassez-les méthodiquement</strong>. Et si vous pouvez automatiser le process, foncez. C’est comme les tests : mieux vaut un peu de sueur aujourd’hui qu’un gros incendie demain 🔥.</p><p>Allez, à vos terminaux et bons bisect à tous !</p><p><a href="https://www.linkedin.com/in/younessadmi/"><em>Younes Sadmi</em></a><em>, Engineering manager — Skello Tech Team</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b788831dead" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/arr%C3%AAtez-de-perdre-du-temps-chassez-vos-bugs-efficacement-avec-git-bisect-0b788831dead">Arrêtez de perdre du temps : chassez vos bugs efficacement avec Git Bisect</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Robust CI/CD Pipeline for DBT at Skello]]></title>
            <link>https://medium.com/skello-engineering/building-a-robust-ci-cd-pipeline-for-dbt-at-skello-e59d685292da?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/e59d685292da</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 06:18:11 GMT</pubDate>
            <atom:updated>2025-03-07T12:13:58.594Z</atom:updated>
            <content:encoded><![CDATA[<p>At Skello, we leverage <a href="https://docs.getdbt.com/docs/introduction#dbt-core">dbt Core</a> (Open Source) on top of <a href="https://www.snowflake.com/en/emea/"><strong>Snowflake</strong></a> to transform raw data into actionable insights and measure the success of our features. Our data stack consists of <strong>Snowflake</strong> for storage, dbt <strong>Core</strong> for transformations, and <a href="https://airflow.apache.org/"><strong>Apache Airflow</strong></a> for orchestration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u_EOcpJlhTqHrxtjn_XreQ.png" /></figure><p>As our team grew, so did the complexity of managing dbt model changes. To address this, we introduced a CI/CD process tailored to our analytics workflows, improving both development and deployment.</p><h3>Adding CI/CD to dbt: Our First Iteration</h3><p>To improve model development and validation, we created a CI/CD process that runs on Github Actions. This allowed us to automatically verify changes before merging them into production.</p><p>Here is the content of our cicd</p><pre>dbt --no-write-json run --models @state:modified --full-refresh --project-dir path_to_dbt_project_dir --profiles-dir path_to_dbt_profiles_dir --fail-fast --state path_to_manifest --target cicd</pre><p>Simple right?</p><p>Well not quite, let me explain.</p><h3>How It Works</h3><p>We made a few technical choices for our cicd.</p><p>First we created a dedicated Snowflake database and warehouse used exclusively for CI/CD, ensuring complete isolation from production and a dedicated target in our profiles.yml. For each pull request, a schema is dynamically generated to create a fully independent testing environment. This setup allows multiple engineers to work simultaneously without interference.</p><p>Second of all, we leverage dbt’s state:modified selector to identify and run only the models impacted by the changes. To support this, our release process was updated to save the latest production state in S3, which is fetched at the start of every CI run.</p><p>Finally, in order to validate the SQL logic and structure of our models we opted to create them as <strong>empty tables</strong>.</p><p>We chose to run upstream and downstream models. This approach ensures that dependencies are correctly structured without unnecessary data processing and that changes do not introduce regressions in other parts of the pipeline.</p><p>We also force a full refresh during tests to ensure incremental models are rebuilt from scratch.</p><p>To make this happen we’ve customized dbt’s macros. The source and ref macros are overridden to generate empty tables during testing, while the generate_alias_name and generate_schema_name macros dynamically assign names based on the pull request.</p><h3>Addressing Challenges: Automating Deployments</h3><p>While the initial CI/CD implementation improved validation, deployments remained manual. Engineers had to apply changes via their terminals, which was both error-prone and required access to production databases.</p><p>To streamline this process, we automated deployments by:</p><ol><li>Applying changes automatically during deployment, eliminating the need for manual intervention.</li><li>Launching a full-refresh for incremental models to ensure the latest data was incorporated</li><li>Executing downstream dependencies to maintain consistency across the pipeline.</li></ol><p>These improvements reduced errors, enhanced security by limiting access to production, and accelerated the release cycle.</p><h3>Results: Faster, Safer, and More Reliable Data Pipelines</h3><p>By integrating CI/CD into our dbt workflows, we achieved:</p><ul><li><strong>Faster Feedback Loops</strong>: Engineers receive feedback rapidly on changes during pull requests.</li><li><strong>Reduced Risk</strong>: Automated deployments minimized human errors and restricted access to production databases.</li><li><strong>Streamlined Releases</strong>: Changes were applied consistently and efficiently, enabling quicker delivery of insights.</li></ul><p>Our CI/CD process has transformed how we work with dbt, empowering our team to iterate faster and focus on delivering value through data.</p><p>This streamlined approach to CI/CD has become a cornerstone of our data engineering practices, ensuring both high-quality outputs and a better development experience.</p><h3>Reflections After a Few Weeks of Using the System</h3><p>At first, the system didn’t quite fit our needs.</p><ul><li>We run a workflow that refreshes most of our models every hour, which risked two processes refreshing the same table simultaneously — a situation we definitely wanted to avoid.</li><li>Refreshing all downstream models <strong>isn’t always necessary</strong>. In fact, it’s typically only needed in specific cases like: Business rule changes or Data breaks</li></ul><p>To solve this, we used <strong>GitHub Actions and PR labels</strong> to differentiate between deployment types:</p><ul><li>If an Analytics Engineer adds a specific label to the PR, all impacted models and their downstream dependencies are rebuilt.</li><li>If no label is added, only the modified models are rebuilt. This greatly reduces the chance of collisions.</li></ul><p>We also added a check to ensure our hourly refresh workflow isn’t running during deployments, further preventing conflicts.</p><p>With these adjustments, Analytics Engineers are now fully autonomous when handling deployments, whether they’re making incremental updates or rolling out larger model changes.</p><p><a href="https://www.linkedin.com/in/edgar-h-66004b68/">Edgar </a>— Data Engineer Manager — Skello Tech Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e59d685292da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/building-a-robust-ci-cd-pipeline-for-dbt-at-skello-e59d685292da">Building a Robust CI/CD Pipeline for DBT at Skello</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Challenge code #1]]></title>
            <link>https://medium.com/skello-engineering/challenge-code-1-c76bc6bc4817?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/c76bc6bc4817</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 07:30:24 GMT</pubDate>
            <atom:updated>2024-12-20T07:30:24.595Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FauarXoAx-0A%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FauarXoAx-0A%3Ffeature%3Dshare&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FauarXoAx-0A%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb29207e93dcbaa51d49b687575cb58c/href">https://medium.com/media/bb29207e93dcbaa51d49b687575cb58c/href</a></iframe><p>Chez <a href="https://www.linkedin.com/company/skello/">Skello</a>, résoudre des casse-têtes, c’est notre quotidien — Alors aujourd’hui, avec <a href="https://www.linkedin.com/in/yasmine-farhani/">Yasmine Farhani</a>, on vous a préparé un challenge spécial IA pour vous mettre dans les baskets de nos équipes de la SkelloTechTeam le temps d’un défi :</p><p>👨‍🍳 Créer un planning sur 5 semaines pour une équipe de 10 serveurs dans un grand restaurant, le tout avec quelques contraintes croustillantes.</p><p>💡 Le twist ? Utilisez le LLM de votre choix pour générer ce planning.</p><p>On a hâte de découvrir vos idées : comment le LLM que vous choisirez se comportera face aux contraintes ; comment ajusterez vous vos prompts ?</p><p>Regardez la vidéo, et partagez nous vos prompts en commentaires ! Avec ça, vous aurez un aperçu des défis qu’on résout ici chaque jour. Si ça vous inspire, découvrez nos offres pour rejoindre l’aventure 👉 <br><a href="https://jobs.lever.co/skello?department=Tech&amp;team=French%20Market">https://jobs.lever.co/skello?department=Tech&amp;team=French%20Market</a></p><p><strong>Quelques tips :</strong> <br>💡 Si vous souhaitez tester vos prompts facilement, vous pouvez faire tourner en local pas mal de modèles avec <a href="https://lmstudio.ai/">https://lmstudio.ai</a><br>💡 On sait que les LLM hallucinent, votre prompt doit avoir une réponse constante dans le temps</p><p><strong>Voici une réponse possible de promt à ce challenge :</strong></p><pre>On souhaite créer le planning d&#39;une équipe de 10 serveurs dans un grand restaurant avec les contraintes suivantes:<br><br>    Le restaurant est ouvert 7J sur 7 de 11h à 23h.<br>    Chaque serveur doit travailler au maximum 40 heures par semaine et avoir au moins 1 jour de repos.<br>    Chaque jour, les employés ne peuvent être assigné qu&#39;à une seule plage horaire.<br>    Un employé ne peut pas avoir plus de deux dimanches consécutifs sans repos.<br><br>Donne moi une réponse en utilisant un tableau en markdown avec en première colonne l&#39;employé concerné et comme autres colonnes le jours. <br>Chaque case devra contenir le shift assigné à l&#39;employé.</pre><p>Ainsi nous récupérons le planning de la semaine 1 et ensuite il faut boucler avec le prompt suivant :</p><pre>On souhaite créer le planning d&#39;une équipe de 10 serveurs dans un grand restaurant avec les contraintes suivantes:<br><br>    Le restaurant est ouvert 7J sur 7 de 11h à 23h.<br>    Chaque serveur doit travailler au maximum 40 heures par semaine et avoir au moins 1 jour de repos.<br>    Chaque jour, les employés ne peuvent être assigné qu&#39;à une seule plage horaire.<br>    Un employé ne peut pas avoir plus de deux dimanches consécutifs sans repos.<br><br>Voici le planning de la semaine dernière:<br><br>    Shift 1 : 11h-15h<br>    Shift 2 : 15h-19h<br>    Shift 3 : 19h-23h<br><br>Employé Lundi Mardi Mercredi Jeudi Vendredi Samedi Dimanche<br>E1 Shift 1 REPOS Shift 2 Shift 1 Shift 3 Shift 2 Shift 1<br>E2 Shift 2 Shift 1 REPOS Shift 2 Shift 1 Shift 3 Shift 2<br>E3 Shift 3 Shift 2 Shift 1 REPOS Shift 2 Shift 1 Shift 3<br>E4 Shift 1 Shift 3 Shift 2 Shift 1 REPOS Shift 2 Shift 1<br>E5 Shift 2 Shift 1 Shift 3 Shift 2 Shift 1 REPOS Shift 2<br>E6 Shift 3 Shift 2 Shift 1 Shift 3 Shift 2 Shift 1 REPOS<br>E7 REPOS Shift 3 Shift 2 Shift 1 Shift 3 Shift 2 Shift 1<br>E8 Shift 1 Shift 2 Shift 3 Shift 2 Shift 1 Shift 3 REPOS<br>E9 Shift 2 Shift 1 Shift 2 Shift 3 REPOS Shift 1 Shift 3<br>E10 Shift 3 REPOS Shift 1 Shift 2 Shift 3 Shift 2 Shift 2<br><br>Donne moi une réponse en utilisant un tableau en markdown avec en première colonne l&#39;employé concerné et comme autres colonnes le jours. Chaque case devra contenir le shift assigné à l&#39;employé.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c76bc6bc4817" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/challenge-code-1-c76bc6bc4817">Challenge code #1</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Frontend Web Data Management]]></title>
            <link>https://skello-engineering.medium.com/frontend-web-data-management-2ee97010e736?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ee97010e736</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Fri, 13 Dec 2024 06:52:30 GMT</pubDate>
            <atom:updated>2025-01-16T12:07:47.438Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>It was during <strong>Skello Tech Watch Day</strong> — an initiative that gives us a full day to step away from our usual tasks and dive into any tech topic we’re curious about — that I gathered my thoughts and decided to write this article. My focus was on exploring <strong>Vue</strong>, a framework in Skello’s tech stack. Having worked mainly with <strong>React</strong> and <strong>Svelte</strong>, I wanted to broaden my experience with <strong>Vue</strong>.</p><p>As I explored, I realized that modern frontend frameworks often share similar tools and approaches. This sparked a broader question in my mind: how do we <strong>effectively</strong> <strong>organize</strong> and <strong>persist</strong> data in frontend applications? The result was a deeper reflection on <strong>frontend data types</strong> and their optimal use cases.</p><p>In this article, we’ll explore various methods of handling data in web applications, examining where each approach shines and how they can <strong>enhance frontend performance</strong> and <strong>maintainability</strong>. Let’s dive in!</p><h3>JavaScript Data</h3><p>You’re likely familiar with JavaScript’s versatile variable types. There’s no need to detail them here, but they can represent everything from basic numbers to complex, cyclic graphs and collections. You can create and store this data using JS keywords like var , let , const , function , object .</p><p>However, this simple data type has two main drawbacks: <strong>persistence</strong> and <strong>flexibility/reusability</strong>. In a web browser, a simple <strong>page refresh</strong> wipes out the program’s state, <strong>erasing the JavaScript data</strong>. Additionally, when working in the web environment, we need to handle both <strong>Document Object Model (DOM)</strong> <strong>manipulation</strong> and <strong>state management</strong> for better User Experience (UX). These tasks are challenging with vanilla JS alone, which is why developers turn to various <strong>open-source frameworks</strong> for solutions.</p><h3>Frontend Framework Data</h3><p>As mentioned in the last paragraph, frontend frameworks are <strong>JavaScript frameworks/libraries</strong> that establish <strong>software patterns</strong>, <strong>best practices</strong>, and <strong>code reusability</strong> for web development. This type of data remains runtime data and persists just like JavaScript data. Therefore, while the <strong>persistence</strong> limitation remains, the <strong>flexibility and reusability</strong> challenges are resolved. Though frameworks differ in their data types and solutions for web development, they generally offer two types of data management: <strong>Local Component Data</strong> and <strong>State Management Data</strong>. In this article, we’ll use <strong>Vue</strong> to demonstrate these approaches, though similar concepts exist in other frontend frameworks like <strong>React</strong>, <strong>Angular</strong>, or <strong>Vue</strong>.</p><h3>Local Component Data</h3><p>In frontend frameworks, one of the key concepts is <strong>Components</strong>. A Component functions like a blueprint that generates <strong>Hypertext Markup Language (HTML)</strong> content, which can be styled with <strong>Cascading Style Sheet (CSS)</strong> and enhanced with <strong>JavaScript (JS)</strong>. <strong>Components</strong> let us break down the user interface into <strong>self-contained</strong>, <strong>reusable pieces</strong>, making it possible to focus on each element <strong>individually</strong>. Applications typically follow a tree-like structure where components are <strong>nested within one another</strong> (Fig. 1), mirroring the pattern of the <strong>DOM</strong> (Fig. 2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zP0_SoErGowThBcUuTBSBA.png" /></figure><p>Fig. 1 — Example of a Vue web application structure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HxxePyu6nPPBVGSTx73FRg.png" /></figure><p>Fig. 2 — Example of a Document Object Model of a web application</p><p>A <strong>Component</strong> has its own <strong>states, properties (props), methods and events</strong>. For this article, we will focus on <strong>states</strong> and <strong>props</strong>. These data types are <strong>local</strong> JavaScript data <strong>wrapped</strong> by the framework’s library. Using the analogy <strong>Component ↔ Function</strong>, <strong>states</strong> are like variables declared inside a function, while <strong>props</strong> are like function parameters. Simply put, <strong>state</strong> represents a reactive variable that belongs to a component, and <strong>props</strong> are variables passed down through components. In Vue, we manage <strong>states</strong> using ref(), reactive(), or computed() (getter-only), while <strong>props</strong> are passed by the parent component during instantiation and declared by the child component with props / defineProps().</p><p>The main advantages of using framework data types align with the core benefits of frontend frameworks: <strong>code reusability</strong> and the <strong>Component paradigm</strong>. These data types make components <strong>reactive</strong> and simplify programmatic DOM manipulation. However, as web applications grew more <strong>complex</strong> and emphasized <strong>UX</strong>, these data types and the <strong>logical tree architecture</strong> of the DOM proved <strong>insufficient</strong>. This led to new data types designed for <strong>managing state across reactive components</strong>.</p><h3>State Management Data</h3><p>After using these frontend frameworks for some time in big web applications, developers will inevitably encounter a problem called <strong><em>Prop Drilling</em></strong>.</p><p><strong><em>Prop Drilling</em></strong> refers to passing data from a parent component through multiple intermediate components to reach a deeply nested child component. This creates unnecessary complexity since intermediate components must pass along data they don’t use themselves.</p><p>For example (Fig. 3), if a parent component needs to pass data to a deeply nested child (<strong>ChildC</strong>), it must first pass through <strong>ChildA</strong> and <strong>ChildB</strong>, even though only <strong>ChildC</strong> actually needs the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*TADx6xtokHdQrdd3N7FHcA.png" /></figure><p>Fig. 3 — Visual example of <em>Prop Drilling</em></p><p>Each framework offers different solutions to this problem. While this article focuses on general web development concepts rather than specific technologies, some notable solutions include React’s Context API and <strong>state management libraries</strong> like Redux (React) and Vuex (Vue). These solutions, usually, store data in a global object (often called a <strong>store</strong>) that any component can access directly.</p><p>The <strong>main advantage</strong> of using state management libraries is the ability to <strong>centralize and efficiently manage state</strong> across the entire application. This eliminates the need for prop drilling and ensures that different components <strong>can easily access</strong> and <strong>update shared data</strong>, making the application more <strong>scalable</strong>, <strong>predictable</strong>, and <strong>easier to maintain</strong> (if managed properly).</p><p>The <strong>main disadvantage</strong> of using state management libraries is the <strong>added complexity</strong> and <strong>potential performance bottlenecks</strong>. It often requires additional setup, boilerplate code, and a learning curve, especially for beginners. This can lead to <strong>unnecessary overhead</strong>, making the project <strong>harder to manage</strong> than using simpler state management solutions like the component’s local state and props.</p><h3>Browser Data</h3><p>We’ve discussed web applications and their development extensively, but we haven’t touched on where they actually run. Today, web applications operate within browsers, which offer tools and APIs that facilitate code execution and enhance the UX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Eu1biSMrk5A7AsiqhyqvA.png" /></figure><p>After considering the pros and cons of each type of browser data, we must also compare them against other data storage options. Certain limitations, such as the data being stored as string or the <strong>available memory</strong> for storage, may lead developers to avoid certain types and choose the most suitable option for <strong>specific use cases</strong>.</p><h3>Frontend Databases</h3><p>The title of this article indicates that we are focusing on different data types for the <strong>frontend</strong>, so referring to them as <strong>databases (DBs)</strong> might seem somewhat <strong>misleading</strong> or <strong>out of place</strong>. However, there are indeed databases designed specifically for the <strong>frontend web development</strong>, each with its own approach and purpose. Ultimately, the common goal across all of them is to ensure <strong>data persistence on the device</strong>.</p><p>A frontend database can be thought of as an enhanced version of local storage, offering significantly more capacity. In simple terms, for use cases that require larger offline storage, frontend databases are the ideal solution, providing the necessary space and functionality.</p><p>From the outset, it’s clear that databases introduce <strong>complexity</strong> and <strong>additional effort</strong> in the <strong>development</strong> and <strong>management</strong> of web applications. For simpler apps, using databases adds <strong>unnecessary overhead</strong> and inevitably <strong>increases the app’s bundle size</strong>. Since the data is stored on the client side, <strong>synchronization issues</strong> can arise. This means that a web platform must include a mechanism to <strong>sync client-side persisted data with the server-side</strong>.</p><p>Also <strong>depending on the database</strong> we choose, it can also add <strong>slower access to data</strong> compared to <strong>in-memory state management libraries</strong>. However, here is where the tech decisions come up and we can question the use of frontend DBs.</p><p>In complex web applications, the frontend handles user input while the backend manages data persistence. This can lead to delays and a less responsive UI as it waits for server responses. Using an <strong>Optimistic UI</strong> approach, the interface updates immediately, assuming success, and rolls back if needed. When combined with a <strong>local database</strong>, this method enhances UX by providing instant feedback and improving responsiveness, even during network delays.</p><p>Implementing optimistic UI with local databases improves responsiveness but poses <strong>challenges</strong> <strong>in data synchronization and real-time updates</strong>. Ensuring <strong>consistency</strong> between local and external databases requires <strong>careful planning</strong>, while real-time updates demand <strong>complex backend logic</strong> to handle concurrent changes without conflicts or data loss (Fig. 4).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*bpFYJssDoo-C84K44aWe-g.png" /></figure><p>Fig. 4 — Sequence diagram of a simplified implementation of frontend DB with an Optimistic UI approach</p><h3>Honorable Mention — Server-Side Rendering (SSR) Data</h3><p>I know a lot readers might be asking when does this topic comes to the table and I have to bring the bad news and tell you that this won’t be part of the article or at least, the core of it. Why? Well <strong>SSR</strong> and <strong>Client-Side Rendering (CSR)</strong> are <strong>architecture decisions</strong> for a web application that can easily <strong>mix with backend</strong> processing. Since the focus in this article is with the <strong>frontend</strong>, I will just leave it here as an honorable mention. SSR is a good way to store data if you want to focus on the <strong>Search Engine Optimization (SEO)</strong> of your web app, if you have <strong>heavy content</strong> (such as blogs, news portals) or you want <strong>better accessibility</strong> and <strong>enhanced link sharing</strong> (preview cards in social media platforms).</p><h3>Frontend Data Management Mindmap</h3><p>To conclude, one of the purposes of this article, was to also <strong>learn</strong> and <strong>develop</strong> myself into a <strong>better software engineer</strong> and as an engineer I had to <strong>condense</strong> all this information into a <strong>diagram</strong>. I decided to go with a <strong>decision map</strong> to illustrate the <strong>thought process</strong> of when to use a <strong>frontend data type</strong>. I have to remind that this diagram is <strong>not an absolute truth</strong> and some situations could have their <strong>own intricacies</strong>. Having said that, here is my <strong>Mindmap</strong> for <strong>Frontend Data Management</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fM10vo73xDyp1w-zH6c9_g.png" /></figure><p><a href="https://www.linkedin.com/in/joao-romano-barbosa/">Joao </a>— Full stack developper — Skello Tech Teams</p><h3>Bibliography</h3><p><a href="https://www.infoworld.com/article/2337501/data-storage-for-front-end-javascript.html">Data storage for front-end JavaScript</a></p><p><a href="https://medium.com/@jpbinith/why-do-front-end-frameworks-exist-9c344359f1ef"><em>https://medium.com/@jpbinith/why-do-front-end-frameworks-exist-9c344359f1ef</em></a></p><p><a href="https://dev.to/paulocappa/understanding-prop-drilling-and-how-to-solve-it-2bnd"><em>https://dev.to/paulocappa/understanding-prop-drilling-and-how-to-solve-it-2bnd</em></a></p><p><a href="https://www.w3schools.com/js/js_es6.asp"><em>https://www.w3schools.com/js/js_es6.asp</em></a></p><p><a href="https://medium.com/@dimplekumari0228/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage-e731a627acb1"><em>https://medium.com/@dimplekumari0228/describe-the-difference-between-a-cookie-sessionstorage-and-localstorage-e731a627acb1</em></a></p><p><a href="https://vuejs.org/"><em>https://vuejs.org/</em></a></p><p><a href="https://react.dev/learn/passing-data-deeply-with-context"><em>https://react.dev/learn/passing-data-deeply-with-context</em></a></p><p><a href="https://vuex.vuejs.org/"><em>https://vuex.vuejs.org/</em></a></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB"><em>https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB</em></a></p><p><a href="https://javascript.info/indexeddb#:~:text=Unlike%20server-side%20databases%2C%20IndexedDB,need%20to%20update%20the%20database"><em>https://javascript.info/indexeddb#:~:text=Unlike server-side databases%2C IndexedDB,need to update the database</em></a></p><p><a href="https://rxdb.info/articles/frontend-database.html#why-rxdb-is-a-good-fit-for-the-frontend"><em>https://rxdb.info/articles/frontend-database.html#why-rxdb-is-a-good-fit-for-the-frontend</em></a></p><p><a href="https://signaldb.js.org/optimistic-ui/"><em>https://signaldb.js.org/optimistic-ui/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ee97010e736" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Skello Tech Team #4]]></title>
            <link>https://medium.com/skello-engineering/skello-tech-team-4-848d6649736d?source=rss-efeb9de2e10------2</link>
            <guid isPermaLink="false">https://medium.com/p/848d6649736d</guid>
            <dc:creator><![CDATA[Skello Engineering]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 08:58:34 GMT</pubDate>
            <atom:updated>2025-10-03T09:21:00.887Z</atom:updated>
            <content:encoded><![CDATA[<h3>Skello Tech Day #4</h3><p>Jeudi 19 Septembre — Tech Day, quatrième édition.</p><p>Cette fois, nous avons choisi de mixer <a href="https://www.greatballcontraption.com/">Great Ball Contraptions</a> et intelligence artificielle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SKgkmNwrXWOySGXoZbS12g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VRuZjSq0YYdvOMyErgyA7A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1pW_ptnZ76bfY8wyUbUF9g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FY6oQ9peRO0SJrDulDIoA.jpeg" /></figure><p>L’équipe tech, répartie en 7 équipes doit construire en 3 heures son module Légo et développer un script qui compte le nombre de billes de couleur qui passe dans la structure en utilisant la caméra du mac fourni à l’équipe, <a href="https://aws.amazon.com/fr/bedrock/">AWS Bedrock</a>, et un des modèles disponibles sur la plate forme AWS. Nous avions proposé aux équipes d’utiliser <a href="https://www.anthropic.com/claude">Claude 3</a> mais au final chacun a testé et utilisé un modèle différent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KvED-XMOoRoM9MS-MYl0NQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQmpNgub3gO-uL_wthbrKg.jpeg" /></figure><p>L’enjeu de la partie code était entre autre de trouver le bon prompt pour réussir à bien compter les billes et détecter les bonnes couleurs mais aussi de prendre les photos au bon moment afin de compter le maximum de billes (l’équipe gagnante étant bien évidemment l’équipe se rapprochant le plus du nombre réel de billes).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RRsAvdccXLEEQ5BFUyIVQg.jpeg" /></figure><p>Les équipes se sont partagé le défi en plusieurs sous équipes, deux tech pour coder la partie intelligence et plusieurs binômes pour construire les modules GBC en parallélisant les éléments pour aller plus vite .</p><p>Plusieurs équipes ont réussi le défi avec des modules opérationnels et des scripts comptant plus ou moins bien les billes 😅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*83KloWtB-0zETuTJ01Yxyw.gif" /></figure><p>En milieu de journée, petit pause pour reprendre des forces avec une tour de pizzas toujours autant impressionnante.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c2JNcd7W5PZNJPu7KAG0og.jpeg" /></figure><p>L’après midi, direction Cergy et son stade d’eau vive .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8xHW_bZCi7Kol2hBO4n4Q.jpeg" /></figure><p>Les équipes se sont défiées dans plusieurs courses de rafting avec un magnifique soleil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*5XffavI29Y3aUY7phw9cig.gif" /></figure><p>L’eau fraîche a permis de refroidir tous les processeurs de l’équipe tech qui en avaient bien besoin après une matinée ultra intense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nz8kemHKUF_6AiPFKvYL6w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3anLlD7Jkd9XSMF9upFQSg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*8TqfXH58X5lLfi-pxO5cYA.gif" /></figure><p>Vivement le prochain Tech Day 😍</p><p><a href="https://www.linkedin.com/in/oliviercauvin/">Olivier</a><em>, </em>CTO — Skello Tech Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=848d6649736d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skello-engineering/skello-tech-team-4-848d6649736d">Skello Tech Team #4</a> was originally published in <a href="https://medium.com/skello-engineering">Skello Tech Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>